Skip to main content

TouchScreenButtonVisualSettings

A class in Root.Township, Alta.Meta.UI.

Asset with the look of a touch screen button: alpha when idle and pressed, a grow animation and a material. Client.

Constructors​

MemberWhat it is
TouchScreenButtonVisualSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private Material colorBacking field for Color.
private AnimationCurve growCurveBacking field for GrowCurve.
private float growDurationBacking field for GrowDuration.
private float idleAlphaBacking field for IdleAlpha.
private float pressedAlphaBacking field for PressedAlpha.

Properties​

MemberWhat it is
Material Color { get; }Material used for the button.
AnimationCurve GrowCurve { get; }Curve for the grow animation.
float GrowDuration { get; }Length of the grow animation in seconds (default 0.5).
float IdleAlpha { get; }Alpha when not pressed (default 0.5).
float PressedAlpha { get; }Alpha when pressed (default 1).

Used in​

Members of other types that take, return or hold a TouchScreenButtonVisualSettings: