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

◆ Any< T >() [4/4]

static bool Sisus.Init.Find.Any< T > ( [DisallowNull] Predicate< T > match,
[NotNullWhen(true), MaybeNullWhen(false)] out T result,
bool includeInactive = false )
static
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 .

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

Parameters
matchThe Predicate<T> delegate that defines the conditions of the Object to search for.
resultWhen this method returns, contains loaded T instance, if found; otherwise, null. This parameter is passed uninitialized.
Returns
true if a result was found; otherwise, false.