Hi all. This is my first question.

How do you go about exposing child properties on root node so that the change is visible in the editor?

Let's say I have a 2D platformer game, and I want to put glowing plants as light sources. So each plant will contain Sprite and Light2D as child nodes. But let's say I want to have multiple looks for these plants. I create a sprite sheet so and set the Sprites vertical and horizontal frames accordingly. Now I don't want the looks to be randomized each time I play the level, so I decide to put the plants manually and set each plants frame manually.

So the solution for 'manually change child property and see the change in editor' would be to set the root node of plant scene to be the Sprite, and have 1 child - Light2D.

But what if I wanted to edit the energy of the Light2D too? If these would be the only 2 variables, coming from 2 'child nodes' (of the whatever would be the root node for plant scene) I wanted to change while in editor, and see the changes while editing my level, how would I accomplish that?

I know I can use the export(int) var spriteFrame in the root nodes script, but that will not preview changes immediately, while I'm working on my level. I'd have to start the level scene to check how it looks like each time.

I hope I made my question clear.

This video is very old now, but I presume you mean something like this:

2 years later