Component:NoDestroyUndo

From Resonite Wiki
This page contains changes which are not marked for translation.


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