csharp
public sealed class RenameEntityCommandRenaming one entity.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Public because a rename can arrive from three places — the hierarchy's inline editor, the inspector's name field, and a script — and all three should produce the same history entry.
Fields and properties (1)
public string NameWhat this is called in the undo history, as a person would say it.
Methods (4)
public RenameEntityCommand(SceneDocument document, Entity entity, string oldName, string newName)Describes renaming an entity.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
public bool TryMergeWith(IEditorCommand previous, out IEditorCommand? merged)
Used by (1)
- SceneDocumentVixen.Editor.SceneView