Component:NoDestroyUndo: Difference between revisions

From Resonite Wiki
imported>Xekri
Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=NoDestroyUndoComponent.png |Name=No Destroy Undo }} <!--T:2--> == Fields == {{Table Compone..."
 
add info
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
|Name=No Destroy Undo
|Name=No Destroy Undo
}}
}}
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.


<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|No Destroy Undo]]
[[Category:Components{{#translation:}}|No Destroy Undo]]
[[Category:Components:Transform:Tagging{{#translation:}}|No Destroy Undo]]
[[Category:Components:Transform:Tagging{{#translation:}}|No Destroy Undo]]

Latest revision as of 15:53, 19 October 2024


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

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.

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.

Usage

Attach to an object with a grabbable component. this will prevent the grabbable object from being brought back if it is destroyed.

Examples

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

Related Components