Synced
SceneEdits.MoveGameObjects
Section titled “SceneEdits.MoveGameObjects”
- Moves minimal selected roots together, preserving descendants and recording only affected placements.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”public void Inno.Editor.Scene.SceneEdits.MoveGameObjects(System.Collections.Generic.IReadOnlyList<Inno.Scene.GameObject> targets, Inno.Scene.GameScene destination, Inno.Scene.GameObject? parent = null, int insertionIndex = 2147483647)Parameters
Section titled “Parameters”Parameter targets: Selected live objects in their required relative order.
Parameter destination: The loaded editable destination scene.
Parameter parent: The new parent, or null for scene roots.
Parameter insertionIndex: The insertion index after removing the selected roots; the default appends them.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: An owner is read-only, unavailable, or the move would form a cycle.
Exception T:System.ArgumentException: The parent belongs to a different scene.