Component:AvatarDestroyOnDequip: Difference between revisions

From Resonite Wiki
imported>Chemicalcrux
Creating the page (with a bot!)
 
add info
 
(3 intermediate revisions by 3 users not shown)
Line 9: Line 9:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The AvatarDestroyOnDequip component destroys DestroyRoot when the avatar it's in the hierarchy of is unequipped. 


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|DestroyRoot|Slot|  
|DestroyRoot|Slot| The slot to destroy when the avatar this component is a part of is dequipped.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
Attach to a part of an Avatar's hierarchy and then provide a slot to <code>DestroyRoot</code> When the parent avatar is dequipped, <code>DestroyRoot</code> will be destroyed.


<!--T:5-->
<!--T:5-->
== Examples ==
== Examples ==
Can be used to remove slots that are generated when a user enters an avatar, but need to be destroyed when they leave said avatar. or it can destroy a slot outside the avatar, which could be used in puzzles or world systems.


<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|AvatarDestroyOnDequip (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Avatar Destroy On Dequip]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System{{#translation:}}|Avatar Destroy On Dequip]]
[[Category:Components:Users:Common Avatar System{{#translation:}}|AvatarDestroyOnDequip (Component){{#translation:}}]]

Latest revision as of 17:40, 29 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarDestroyOnDequip component as seen in the Scene Inspector


The AvatarDestroyOnDequip component destroys DestroyRoot when the avatar it's in the hierarchy of is unequipped.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
DestroyRoot Slot The slot to destroy when the avatar this component is a part of is dequipped.

Usage

Attach to a part of an Avatar's hierarchy and then provide a slot to DestroyRoot When the parent avatar is dequipped, DestroyRoot will be destroyed.

Examples

Can be used to remove slots that are generated when a user enters an avatar, but need to be destroyed when they leave said avatar. or it can destroy a slot outside the avatar, which could be used in puzzles or world systems.

Related Components