|DestroyTarget|IDestroyable| The slot, component (etc) to destroy.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
The DestroyProxy component is used to automatically destroy a specified <code>DestroyTarget</code> when the slot it is attached to gets destroyed.
The DestroyProxy component is used to automatically destroy a specified <code>DestroyTarget</code> 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 <code>DestroyTarget</code> or else the target IDestroyable object will be destroyed as well.
Important to note: If you'd like to remove the component, first unset the <code>DestroyTarget</code> or else the target IDestroyable object will be destroyed as well.
Line 22:
Line 21:
== Examples ==
== 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.
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.