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

◆ WrappedObject< TWrapper, TWrapped >()

static TWrapped Sisus.Init.Find.WrappedObject< TWrapper, TWrapped > ( bool includeInactive = false)
static

Returns the first object of type TWrapped wrapped by a loaded Object of type TWrapper .

Template Parameters
TWrapperType of the wrapping Object.
TWrappedType of the wrapped object.
Parameters
includeInactiveShould components on inactive GameObjects be included in the search?
Returns
object of type TWrapped , if found; otherwise, null
Type Constraints
TWrapper :Object 
TWrapper :IWrapper<TWrapped>