Class ScenePreview
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Shared scene-view context drawing for level authoring: build slots, rally points, rally radius and tower range ellipses (same shape the simulation tests). Toggles persist in editor preferences.
public static class ScenePreview
- Inheritance
-
ScenePreview
- Inherited Members
Properties
ShowRanges
Whether tower ranges and rally radii are drawn around slots.
public static bool ShowRanges { get; set; }
Property Value
ShowSlots
Whether build slots are drawn while editing paths and slots.
public static bool ShowSlots { get; set; }
Property Value
Methods
DrawSlot(BuildSlotAuthoring, float, bool)
Draws one slot with its rally point, rally radius and preview range.
public static void DrawSlot(BuildSlotAuthoring slot, float yScale, bool highlighted)
Parameters
slotBuildSlotAuthoringyScalefloathighlightedbool
DrawSlots(BuildSlotAuthoring)
Draws every build slot in the open scenes, highlighting highlight.
public static void DrawSlots(BuildSlotAuthoring highlight = null)
Parameters
highlightBuildSlotAuthoring
DrawToggles()
Draws the preview toggles in an inspector.
public static void DrawToggles()
Invalidate()
Forces the slot cache to refresh.
public static void Invalidate()