s&box docs

public static abstract sealed class Editor.ToolRender

Renders basic stuff for tool views

Methods

Showing 10 methods

public static void Draw2DCircle(Vector2 center, float radius, int segments, Color color)

public static void Draw2DRectangleTextured(Vector2 topLeft, Vector2 bottomRight, Sandbox.Texture texture, bool alpha = True, bool srgb = True)

Parameters

  • alpha: Default: True
  • srgb: Default: True

public static void DrawScreenText(string text, Vector2 pos, Color color)

public static void DrawWorldSpaceText(string text, Vector3 pos, Vector2 pixelOffset2D, Color color, float minZoomLevelToRender)

Properties

Showing 1 properties

public static bool Editor.ToolRender.IsActiveView { get; set; }

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.ToolRender

On this page