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

◆ In< T >() [1/7]

static bool Sisus.Init.Find.In< T > ( [DisallowNull] GameObject gameObject,
[NotNullWhen(true), MaybeNullWhen(false)] out T result,
Including including )
static

Finds object of the given type 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 object 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.
resultWhen this method returns, contains object of type T , if found; otherwise, null. This parameter is passed uninitialized.
includingdetermines what GameObjects related to the provided gameObject are included in the search.
Returns
true if object of the given type was found; otherwise, false.