Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Changes the layer of a live GameObject and records the two stable numeric layer slots.

API: engine
Project: Inno.Editor.Scene

public void Inno.Editor.Scene.SceneEdits.SetGameObjectLayer(Inno.Scene.GameObject gameObject, Inno.Scene.Layers.GameLayer layer, string historyName = "Set GameObject Layer")

Parameter gameObject: The live GameObject whose layer should change.

Parameter layer: The requested project layer slot.

Parameter historyName: The user-facing history entry name.

Exception T:System.ArgumentNullException: Thrown when gameObject is null.

Exception T:System.ArgumentException: Thrown when historyName is empty.