Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Moves a live GameObject subtree into another scene owned by the current editor world.

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

public void InnoEditor.Scene.SceneHierarchyEdit.MoveToScene(InnoEngine.Scene.GameObject gameObject, InnoEngine.Scene.GameScene destination)

Parameter gameObject: The live root object to move.

Parameter destination: The loaded destination scene.

Exception T:System.ArgumentNullException: Thrown when an argument is null.

Exception T:System.InvalidOperationException: Thrown when either scene is not loaded by the editor world.