C# Класс X10D.Unity.GameObjectExtensions

Extension methods for GameObject.
Показать файл Открыть проект

Открытые методы

Метод Описание
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