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

◆ Components< T >()

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

Returns all loaded Components that are of type T or implement an interface of type T or wrap an object of type T .

Template Parameters
TType of the components 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 .

Only objects whose classes derive from Component or ScriptableObject or objects that are wrapped by a IWrapper<T> can be returned.

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