Get RAPTOR

RaptorSuiteMotion.Look

A control's hover, press and lit amounts, each 0 to 1.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorstructpreview, since 0.1.0

When nothing is animating, each amount matches the control's state.

public readonly struct Look

Constructors

Look

public Look(float hover, float press, float lit, bool moving = false)

Creates a look from the given amounts.

ParameterTypeDefaultDescription
hoverfloatThe hover amount.
pressfloatThe press amount.
litfloatThe lit amount.
movingboolfalseWhether any amount is between 0 and 1.

Fields

Hover

public readonly float Hover;

The hover amount.

Lit

public readonly float Lit;

The lit amount, for a control that is on, selected or current.

Moving

public readonly bool Moving;

Whether any amount is between 0 and 1.

Press

public readonly float Press;

The press amount.

  • RaptorSuiteMotion: The Suite's animation timings, and the values that animate a control between states.