Method | Description | |
---|---|---|
LookAt ( GameObject gameObject, GameObject other ) : void |
Rotates the Transform component on the current GameObject such that is is facing another GameObject.
|
|
LookAt ( GameObject gameObject, Transform other ) : void |
Rotates the Transform component on the current GameObject such that is is facing another Transform.
|
public static LookAt ( GameObject gameObject, GameObject other ) : void | ||
gameObject | GameObject | The current game object. |
other | GameObject | The target. |
return | void |
public static LookAt ( GameObject gameObject, Transform other ) : void | ||
gameObject | GameObject | The current game object. |
other | Transform | The target. |
return | void |