This is no longer a stub. Style. Updated description, added field descriptions. Added usage description.
(2 intermediate revisions by one other user not shown)
Line 1:
Line 1:
{{Infobox Component
{{Infobox Component
|Image=ButtonDestroyComponent.png
|Image=ButtonDestroyComponent.webp
|Name=Button Destroy
|Name=Button Destroy
}}
}}
{{stub}}
== Usage ==
The '''ButtonDestroy''' component destroys the Target [[IDestroyable|IDestroyable]] on [[Type:IButton|IButton]] interaction, such as a [[Slot|slot]].
{{Table ComponentFields
{{Table ComponentFields
|Target|IDestroyable|
|Target|IDestroyable| The destroyable slot target.
|FindObjectRoot|Bool|
|FindObjectRoot|Bool| When this is interacted, this component will take the target and go up in the hierarchy and look for the first [[Component:ObjectRoot|object root]] slot, then destroys it.
}}
}}
== Behavior ==
== Usage ==
This can be used in projects that need things destroyed by a button press.
== Examples ==
== Examples ==
The '''ButtonDestroy''' component can be found in many of the default interfaces such as the [[Scene Inspector]].