Component:DestroyProxy: Difference between revisions

From Resonite Wiki
imported>Delta
m remove 'Slot' mention, any IDestroyable works here
 
m ProbablePrime moved page DestroyProxy (Component) to Component:DestroyProxy: Creating component Namespace
(No difference)

Revision as of 06:29, 20 January 2024


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