Component:DestroyProxy

From Resonite Wiki
Revision as of 06:29, 20 January 2024 by ProbablePrime (talk | contribs) (ProbablePrime moved page DestroyProxy (Component) to Component:DestroyProxy: Creating component Namespace)


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


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

Usage

The DestroyProxy component is used to automatically destroy a specified DestroyTarget when the slot it is attached to gets 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

Related Components