(One intermediate revision by one other user not shown)
Line 3:
Line 3:
|Name=Destroy Without Children
|Name=Destroy Without Children
}}
}}
{{stub}}
The '''DestroyWithoutChildren''' component is used to make a slot self-destruct when it has no children.
== Usage ==
== Usage ==
Line 9:
Line 9:
}}
}}
== Behavior ==
== Usage ==
This component is a tag, so attaching it will make it automatically start working. '''Because of this, do not add it to a slot without children if you do not want to lose that slot!'''
== Examples ==
== Examples ==
Line 17:
Line 18:
[[Category:Components:Transform{{#translation:}}|Destroy Without Children]]
[[Category:Components:Transform{{#translation:}}|Destroy Without Children]]
[[Category:Components{{#translation:}}|Destroy Without Children]]
[[Category:Components{{#translation:}}|Destroy Without Children]]
[[Category:ComponentStubs]]
Latest revision as of 05:33, 10 February 2025
Component image
Destroy Without Children component as seen in the Scene Inspector
The DestroyWithoutChildren component is used to make a slot self-destruct when it has no children.
Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Usage
This component is a tag, so attaching it will make it automatically start working. Because of this, do not add it to a slot without children if you do not want to lose that slot!