0 votes

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.

asked Mar 29 in Engine by The_Black_Chess_King (265 points)

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

So far, been doing like:

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

_ready():
    $Timer.set_wait_time(Duration)
    $Timer.start()

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.