Get RAPTOR

RaptorSuiteMotion.OffsetScope

Offsets everything shown inside it during Repaint, leaving hit rects in place.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorstructpreview, since 0.1.0

Has no cost at a zero offset.

public readonly struct OffsetScope : IDisposable

Constructors

OffsetScope

public OffsetScope(Vector2 offset)

Starts the offset.

ParameterTypeDescription
offsetVector2The offset, in points.

Methods

Dispose

public void Dispose()

Ends the offset.

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