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

◆ In() [1/3]

static object Sisus.Init.Find.In ( [DisallowNull] GameObject gameObject,
[DisallowNull] Type type,
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.

Parameters
gameObjectThe GameObject to search.
typeType of the object to find.

Objects match the search criteria if their class is of this type, if their class derives from a 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> can be returned.

Parameters
includingdetermines what GameObjects related to the provided gameObject are included in the search.
Returns
Instance of given type , if found; otherwise, null.