C# Class X10D.Unity.TransformExtensions

Extension methods for Transform.
ファイルを表示 Open project: oliverbooth/X10D

Public Methods

Method Description
LookAt ( Transform transform, GameObject other ) : void

Rotates the current Transform such that is is facing another GameObject.

Method Details

LookAt() public static method

Rotates the current Transform such that is is facing another GameObject.
/// is null /// - or - /// is null. ///
public static LookAt ( Transform transform, GameObject other ) : void
transform Transform The current transform.
other GameObject The target.
return void