Api Editor ToolRender
class

ToolRender

public static abstract sealed class ToolRender

Renders basic stuff for tool views

Properties

Name Type Description
IsActiveView static Boolean

Methods

static Void DrawScreenText(String text, Vector2 pos, Color color)
static Void DrawWorldSpaceText(String text, Vector3 pos, Vector2 pixelOffset2D, Color color, Single minZoomLevelToRender)
static Void DrawLine(Vector3 start, Vector3 end, Color startColor, Color endColor)
static Void DrawLine(Vector3 start, Vector3 end, Color color)
static Void DrawBox(Vector3 mins, Vector3 maxs, Color color)
static Void Draw2DRectangleFilled(Vector2 topLeft, Vector2 bottomRight, Color color)
static Void Draw2DRectangleOutlined(Vector2 topLeft, Vector2 bottomRight, Color color)
static Void Draw2DCircle(Vector2 center, Single radius, Int32 segments, Color color)
static Void Draw2DCross(Vector2 topLeft, Vector2 bottomRight, Color color)
static Void Draw2DRectangleTextured(Vector2 topLeft, Vector2 bottomRight, Texture texture, Boolean alpha = True, Boolean srgb = True)
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.ToolRender