The '''DestroyWithoutChildren''' component is used to make a slot dump its children slots under its parent slot when deleted.
The '''DestroyWithoutChildren''' component is used to make a slot self-destruct when it has no children.
== Usage ==
== Usage ==
Line 10:
Line 10:
== Usage ==
== Usage ==
This component is a tag, so attaching it will make it automatically start working.
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 ==
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!