Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

HierarchyNodeTypeHandlerBase.UndoRedoSupported

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

protected bool UndoRedoSupported();

Returns

bool true if undo/redo is supported, otherwise false

Description

Determines whether this hierarchy node type handler supports undo/redo operations. When doing certain operations that modify the hierarchy, for example reordering nodes with mixed-types, the hierarchy needs to know if the involved node type handlers support undo/redo in order to determine whether to create an undo operation for the changes specific to the hierarchy. Return true if this node type handler has underlying data that supports undo/redo. Return false if this node type handler has underlying data that does not support undo/redo.