Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Changes the tag of a live GameObject and records the two ordinal tag strings.

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

public void InnoEditor.Scene.SceneEdits.SetGameObjectTag(InnoEngine.Scene.GameObject gameObject, string tag, string historyName = "Set GameObject Tag")

Parameter gameObject: The live GameObject whose tag should change.

Parameter tag: The requested non-empty tag.

Parameter historyName: The user-facing history entry name.

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

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