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

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

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

Finds object with the given 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.
idThe identifier of the object to find.
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.
Template Parameters
TType of the object to find.
Returns
Type Constraints
T :IIdentifiable