C# 클래스 X10D.Unity.GameObjectExtensions

Extension methods for GameObject.
파일 보기 프로젝트 열기: oliverbooth/X10D

공개 메소드들

메소드 설명
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.

메소드 상세

LookAt() 공개 정적인 메소드

Rotates the Transform component on the current GameObject such that is is facing another GameObject.
/// is null /// - or - /// is null. ///
public static LookAt ( GameObject gameObject, GameObject other ) : void
gameObject GameObject The current game object.
other GameObject The target.
리턴 void

LookAt() 공개 정적인 메소드

Rotates the Transform component on the current GameObject such that is is facing another Transform.
/// is null /// - or - /// is null. ///
public static LookAt ( GameObject gameObject, Transform other ) : void
gameObject GameObject The current game object.
other Transform The target.
리턴 void