Can you expose a child property?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By The_Black_Chess_King

A have a trigger object that play a music/event when the player steps in, It’s a Area2D with a CollisionPolygon2D. As it’s child as well, there’s a AudioStreamPlayer that holds the sound I choosed.

With the trigger, can I export directly it’s child property like the Volume_Db, Pitch, the AudioStream to the inspector?

The intention is to control the child through the inspector of the parent, because obviously the exported scenes are locked to modifications.

You can use editable children to workaround the “locked modifications”. Right-click the instance, and check “editable children”.

Zylann | 2020-03-29 03:09

So far, been doing like:

export (float) var Duration = 10.0 #Default value assigned

I didn’t knew editable children was this powerful, I misjudge by a short route to edit the locked scene base, and any changes was going to be applied permanently. Ty

The_Black_Chess_King | 2020-03-30 04:20