API reference
API reference
Select your platform
No SDKs available
No versions available

GameObjectSearchUtility Class

Overview

Static Public Member Functions

static T
FindSceneObject< T >
( bool includeInactive )
Finds the first available scene scripts of a specific object type
static T []
FindSceneObjects< T >
( bool includeInactive,
bool returnImmediately )
Finds all scene scripts of a specific object type

Details

Static Member Functions

static T Meta.WitAi.Utilities.GameObjectSearchUtility.FindSceneObject< T >
( bool includeInactive )
Finds the first available scene scripts of a specific object type
Parameters
includeInactive
Whether inactive GameObjects should be searched
Others
T
Script type being searched
Returns
The first found script matching the specified type
static T [] Meta.WitAi.Utilities.GameObjectSearchUtility.FindSceneObjects< T >
( bool includeInactive,
bool returnImmediately )
Finds all scene scripts of a specific object type
Parameters
includeInactive
Whether inactive GameObjects should be searched
returnImmediately
Whether the method should return as soon as a matching script is found
Others
T
Script type being searched
Returns
All scripts matching the specified type
Did you find this page helpful?
Thumbs up icon
Thumbs down icon