Component:DestroyProxy

From Resonite Wiki
Revision as of 23:42, 15 October 2024 by 989onan (talk | contribs) (add some info, remove component stub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Destroy Proxy component as seen in the Scene Inspector


Fields

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.
DestroyTarget IDestroyable The slot, component (etc) to destroy.

Usage

The DestroyProxy component is used to automatically destroy a specified DestroyTarget when this component itself or it's parent slot is destroyed.

Important to note: If you'd like to remove the component, first unset the DestroyTarget or else the target IDestroyable object will be destroyed as well.

Examples

This can be put under a slot with a bunch of other destroy proxies that group together certain feature sets on an avatar, item or world. When the slot is destroyed, every destroy proxy on the slot will destroy everything they point to. This is useful for example, making multiple avatars with different feature sets and removing them to make simpler versions.

Related Components