Synced
SceneEdits.ChangeHierarchy
Section titled “SceneEdits.ChangeHierarchy”
- Applies a hierarchy mutation and records only the affected parent and sibling-index tuples.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”public bool Inno.Editor.Scene.SceneEdits.ChangeHierarchy(Inno.Scene.GameObject gameObject, System.Action<Inno.Editor.Scene.SceneHierarchyEdit> mutation, string historyName = "Move GameObject", System.Collections.Generic.IReadOnlyCollection<Inno.Scene.GameObject>? relatedObjects = null)Parameters
Section titled “Parameters”Parameter gameObject: The primary GameObject being moved.
Parameter mutation: The hierarchy mutation to execute through the world-owned operation context.
Parameter historyName: The user-facing history entry name.
Parameter relatedObjects: Additional objects whose placements the mutation may change, such as promoted children.
Returns
Section titled “Returns”true when at least one placement changed.