RaptorSuiteMotion.FadeScope
Fades everything shown inside it.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
IMGUI ignores container opacity for explicit colours, so use this scope to fade an overlay. Has no cost at an alpha of 1.
public readonly struct FadeScope : IDisposableConstructors
FadeScope
public FadeScope(float alpha)Starts the fade.
| Parameter | Type | Description |
|---|---|---|
alpha | float | The opacity, 0 to 1. |
Methods
Dispose
public void Dispose()Ends the fade.
Related types
- RaptorSuiteMotion: The Suite's animation timings, and the values that animate a control between states.