Component:NoDestroyUndo: Difference between revisions

From Resonite Wiki
remove inaccurate information based on how `INoDestroyUndo` works internally, clarify information
m fix typo
 
Line 9: Line 9:
The '''NoDestroyUndo''' component prevents an [[Undo]] step from being created when destroying the slot that the component is attached to.
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}}
{{Note|This component 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}}





Latest revision as of 14:27, 24 June 2025


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

Component image 
No Destroy Undo component as seen in the Scene Inspector

The NoDestroyUndo component prevents an Undo step from being created when destroying the slot that the component is attached to.

This component is currently non-functional and using it will have no effect. see issue #979.


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. Some components stop their functionality when this field is disabled, but some don't.

Usage

Attach to the root slot that will be destroyed. this will prevent the slot from being brought back through undoing after it is destroyed.

Examples

Useful for objects that should be one of a kind, or other implementations.

Related Components