RaptorSuiteMotion.Look
A control's hover, press and lit amounts, each 0 to 1.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
When nothing is animating, each amount matches the control's state.
public readonly struct LookConstructors
Look
public Look(float hover, float press, float lit, bool moving = false)Creates a look from the given amounts.
| Parameter | Type | Default | Description |
|---|---|---|---|
hover | float | The hover amount. | |
press | float | The press amount. | |
lit | float | The lit amount. | |
moving | bool | false | Whether 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.
Related types
- RaptorSuiteMotion: The Suite's animation timings, and the values that animate a control between states.