Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Applies a hierarchy mutation and records only the affected parent and sibling-index tuples.

API: scripting
Project: Inno.Editor.Scene
Scope: Editor

public bool InnoEditor.Scene.SceneEdits.ChangeHierarchy(InnoEngine.Scene.GameObject gameObject, System.Action<InnoEditor.Scene.SceneHierarchyEdit> mutation, string historyName = "Move GameObject", System.Collections.Generic.IReadOnlyCollection<InnoEngine.Scene.GameObject>? relatedObjects = null)

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.

true when at least one placement changed.