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: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”public void Inno.Editor.Scene.SceneEdits.SetGameObjectLayer(Inno.Scene.GameObject gameObject, Inno.Scene.Layers.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.