Get RAPTOR

RaptorSuiteMotion.FadeScope

Fades everything shown inside it.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorstructpreview, 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 : IDisposable

Constructors

FadeScope

public FadeScope(float alpha)

Starts the fade.

ParameterTypeDescription
alphafloatThe opacity, 0 to 1.

Methods

Dispose

public void Dispose()

Ends the fade.

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