Summary
[Editor-Only]
Outputs the
UnityEngine.GameObject
assignated with the `obj` and returns true if it exists.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static bool TryGetGameObject(Object obj, out GameObject gameObject)
Remarks
If the `obj` is a
UnityEngine.GameObject
it is used as the result.
Or if the `obj` is a UnityEngine.Component
then its UnityEngine.Component.gameObject
is used as the result.
Parameters
Name | Type | Description |
---|---|---|
obj | Object | |
gameObject | GameObject |
Return Value
Type | Description |
---|---|
bool |