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

◆ GameObjectOf() [2/2]

static bool Sisus.Init.Find.GameObjectOf ( [DisallowNull] object attachedObject,
[NotNullWhen(true), MaybeNullWhen(false)] out GameObject gameObject )
static

Gets the GameObject to which the given object is attached.

Parameters
attachedObjectThe Component or plain old class object wrapped by a Wrapper<> component whose containing GameObject should be returned.
resultWhen this method returns, contains the GameObject to which the given object is attached to, if any; otherwise, null. This parameter is passed uninitialized.
Returns
true if GameObject was found; otherwise, false.