The '''NoDestroyUndo''' component, when the [[Slot|slot]] [[Tag|tagged]] with this component and put on the root of an object, 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.
The '''NoDestroyUndo''' component prevents an [[Undo]] step from being created when destroying the slot that the component is attached to.
{{Note|This node is currently non-functional and using it will have no effect. see issue [https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/979 #979].|warning}}
<!--T:2-->
<!--T:2-->
Line 16:
Line 19:
<!--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.
Attach to the root slot that will be destroyed. this will prevent the slot from being brought back through undoing after it is destroyed.
<!--T:4-->
<!--T:4-->
Revision as of 13:38, 24 June 2025
This article or section is a Stub. You can help the Resonite Wiki by expanding it.