Synced
GameScene.FindObjectWithTag
Section titled “GameScene.FindObjectWithTag”
- Finds the first game object with an ordinally matching tag in scene storage order.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Scene
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Scene.GameObject? InnoEngine.Scene.GameScene.FindObjectWithTag(string tag)Parameters
Section titled “Parameters”Parameter tag: Tag to find.
Returns
Section titled “Returns”The first match, or null when no object matches.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when tag is empty or contains only white-space characters.