Synced
SceneEdits.SetGameObjectLayer
Section titled “SceneEdits.SetGameObjectLayer”
- Changes the layer of a live GameObject and records the two stable numeric layer slots.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Scene
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.Scene.SceneEdits.SetGameObjectLayer(InnoEngine.Scene.GameObject gameObject, InnoEngine.Scene.GameLayer layer, string historyName = "Set GameObject Layer")Parameters
Section titled “Parameters”Parameter gameObject: The live GameObject whose layer should change.
Parameter layer: The requested project layer slot.
Parameter historyName: The user-facing history entry name.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when gameObject is null.
Exception T:System.ArgumentException: Thrown when historyName is empty.