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

GameObjectSearchUtility Class

Static Member Functions

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
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