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

◆ GameObjectOf< T >()

static GameObject Sisus.Init.Find.GameObjectOf< T > ( [DisallowNull] T attachedObject)
static

Returns GameObject to which the given object is attached.

Template Parameters
TType of the object whose containing GameObject should be returned.

This can be a type that derives from Component, an interface implemented by a class that derives from Component, or a plain old class or any interface implemented by such a class if it is wrapped by a Wrapper<T> component.

Parameters
attachedObjectThe Component or plain old class object wrapped by a Wrapper<T> component whose containing GameObject should be returned.
Returns
GameObject that has the given object is attached to it, if found; otherwise, null.