When put on the root of an object, this component prevents the adding of an [[Undo]] step for destroying the object. This only works for when a user deletes the object via their context menu, but not if a [[:Category:ProtoFlux:Undo|Undo ProtoFlux node type]] creates an undo step for the object.
<!--T:2-->
<!--T:2-->
Line 15:
Line 16:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to an object with a [[Component:Grabbable|grabbable component]]. this will prevent the grabbable object from being brought back if it is destroyed.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Useful for objects that should be one of a kind, or other implementations.
When put on the root of an object, this component prevents the adding of an Undo step for destroying the object. This only works for when a user deletes the object via their context menu, but not if a Undo ProtoFlux node type creates an undo step for the object.