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

◆ WrappedObject()

static object Sisus.Init.Find.WrappedObject ( [DisallowNull] Type type,
bool includeInactive = false )
static

Returns the first object that is of the given type or implements an interface of the given type and is wrapped by an active loaded component of type WrapperOf<>.

Parameters
typeType of the wrapped object.
includeInactiveShould inactive GameObjects be included in the search?
Returns
object of type T , if found; otherwise, null