#How can I create a Child Scene(s) where I can configure the sizes individually?

1 messages · Page 1 of 1 (latest)

north grotto
#

I have some Area2Ds with CollisionShape2Ds that I want to make into a reusable component (a Scene).
The problem is, when I create that scene, I define the size of the CollisionShape2D within that Scene.

What I'd like is to be able to click/drag that shape from within the Main scene where I am placing these Child Scenes. That way I can place them where I like and configure the properties individually for each in the GUI.

I've tried creating this script as a @tool with @exported 'x' and 'y' setters which internally ran $Area2D/CollisionShape2D.shape.extents = Vector2(x, y).
This worked to adjust the size, but it changed the size across all instances of the child scene instead of just the one I have selected.

Is there any way to do what I am looking for?

#

How can I create a Child Scene(s) where I can configure the sizes individually?

ember tide
#

Not very sure but maybe your can set "local to scene" for the collision shape?

north grotto
#

Let me give that a try, thank you!