I’ve been making a new ship-lander game to try the new collision features (they are awesome btw) and ran into a workflow problem:
If I want to create lots of shapes, and test collision with all of them, what is the best way to point to all of the shapes from a script?
I’d be happy with a way to grab every shape on a specified layer, that way I could just make a Colliders layer and draw shapes on that with the brush…
An array of clips should do the work.
if you want to apply the same script to all your shapes, you could write a Class for that, or you could clone the objects/clips… When you clone an object/clip, it will clone it with their scripts.
Here is a tutorial using classes…
2 Likes