Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ AllIn< T >() [1/2]

static T[] Sisus.Init.Find.AllIn< T > ( [DisallowNull] GameObject gameObject,
Including including )
static

Finds all objects of type T in relation to the provided gameObject .

The provided including value determines what GameObjects related to the provided gameObject are included in the search.

Template Parameters
TType of the objects to find.

Objects match the search criteria if their class is of type T , if their class derives from a base class of type T , or their class implements an interface of type T .

Parameters
gameObjectThe GameObject to search.
includingdetermines what GameObjects related to the provided gameObject are included in the search.
Returns
T instance, if found; otherwise, null.