Class RangePreview

Namespace
TDMaker.Editor
Assembly
TDMaker.Editor.dll

Scene-view drawing of range ellipses using exactly the simulation's shape (RangeShape), with the range Y scale resolved from the open scene's level and runner.

public static class RangePreview
Inheritance
RangePreview
Inherited Members

Fields

DefaultYScale

Fallback range Y scale when no scene runner or level override is found.

public const float DefaultYScale = 0.8

Field Value

float

Properties

SceneYScale

Range Y scale the open scene would simulate with (level override, else runner setting, else default).

public static float SceneYScale { get; }

Property Value

float

Methods

Draw(Vector3, float, float, Color, float, float)

Draws a filled range ellipse with an outline at center.

public static void Draw(Vector3 center, float range, float yScale, Color color, float fillAlpha = 0.08, float lineWidth = 2)

Parameters

center Vector3
range float
yScale float
color Color
fillAlpha float
lineWidth float

For(LevelAsset)

Range Y scale for a specific level asset (its override, else the scene value).

public static float For(LevelAsset level)

Parameters

level LevelAsset

Returns

float

Invalidate()

Forces the cached scene value to refresh on next access.

public static void Invalidate()