C# Class 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.
Inheritance: MonoBehaviour
Afficher le fichier Open project: leapmotion/ImageGrid

Méthodes publiques

Свойство Type Description
FadeCurve UnityEngine.AnimationCurve
ReferenceTransform_AutoDiscovered Transform

Méthodes publiques

Méthode Description
Awake ( ) : void
OnEnable ( ) : void
Update ( ) : void

Private Methods

Méthode Description
registerReferenceTransform ( ) : bool

Finds and assigns a reference to the reference transform.

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

FadeCurve public_oe property

Curve to translate dot product to opacity
public AnimationCurve,UnityEngine FadeCurve
Résultat UnityEngine.AnimationCurve

ReferenceTransform_AutoDiscovered public_oe property

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
Résultat Transform