RaptorSuiteMotion.OffsetScope
Offsets everything shown inside it during Repaint, leaving hit rects in place.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
Has no cost at a zero offset.
public readonly struct OffsetScope : IDisposableConstructors
OffsetScope
public OffsetScope(Vector2 offset)Starts the offset.
| Parameter | Type | Description |
|---|---|---|
offset | Vector2 | The offset, in points. |
Methods
Dispose
public void Dispose()Ends the offset.
Related types
- RaptorSuiteMotion: The Suite's animation timings, and the values that animate a control between states.