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

◆ All< T >() [5/5]

static void Sisus.Init.Find.All< T > ( [DisallowNull] Type type,
[DisallowNull] List< T > results,
bool includeInactive = false )
static

Returns all loaded objects of the given type .

Template Parameters
TGeneric type of the List<T> into which found results will be placed.
Parameters
typeType of the objects to find.

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

Only objects whose classes derive from Component or objects that are wrapped by a IWrapper<T> will be included in the results.

Parameters
resultsList into which found instances are added.
includeInactiveShould components on inactive GameObjects be included in the search?