C# Класс FadeTextByRotation

Fade out text label in dial as it rotates away.
Uses the dot product between the parent of the label's forward direction and the forward direction of the label, passed through a curve filter to determine the opacity to set the text label to.
Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
FadeCurve UnityEngine.AnimationCurve
ReferenceTransform_AutoDiscovered Transform

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

Метод Описание
Awake ( ) : void
OnEnable ( ) : void
Update ( ) : void

Приватные методы

Метод Описание
registerReferenceTransform ( ) : bool

Finds and assigns a reference to the reference transform.

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

OnEnable() публичный Метод

public OnEnable ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

FadeCurve публичное свойство

Curve to translate dot product to opacity
public AnimationCurve,UnityEngine FadeCurve
Результат UnityEngine.AnimationCurve

ReferenceTransform_AutoDiscovered публичное свойство

Reference for the "forward direction. AutoDiscovered.
AutoDiscovery: Uses the label's parent's parent (label -> dial center -> panel center) Autodiscovery can be overrriden by assigning the reference transform in the editor. "Forward" is assumed to be -z.
public Transform ReferenceTransform_AutoDiscovered
Результат Transform