API ReferenceEditor
ToolRenderclass
Renders basic stuff for tool views
object→ToolRender
Methods10
Showing 10 methods
public static void Draw2DCircle(Vector2 center, float radius, int segments, Color color)
| Parameter | Type | Description |
|---|---|---|
| center | Vector2 | — |
| radius | float | — |
| segments | int | — |
| color | Color | — |
Returns:
void—public static void Draw2DCross(Vector2 topLeft, Vector2 bottomRight, Color color)
| Parameter | Type | Description |
|---|---|---|
| topLeft | Vector2 | — |
| bottomRight | Vector2 | — |
| color | Color | — |
Returns:
void—public static void Draw2DRectangleFilled(Vector2 topLeft, Vector2 bottomRight, Color color)
| Parameter | Type | Description |
|---|---|---|
| topLeft | Vector2 | — |
| bottomRight | Vector2 | — |
| color | Color | — |
Returns:
void—public static void Draw2DRectangleOutlined(Vector2 topLeft, Vector2 bottomRight, Color color)
| Parameter | Type | Description |
|---|---|---|
| topLeft | Vector2 | — |
| bottomRight | Vector2 | — |
| color | Color | — |
Returns:
void—public static void Draw2DRectangleTextured(Vector2 topLeft, Vector2 bottomRight, Sandbox.Texture texture, bool alpha = True, bool srgb = True)
| Parameter | Type | Description |
|---|---|---|
| topLeft | Vector2 | — |
| bottomRight | Vector2 | — |
| texture | Texture | — |
| alpha = True | bool | — |
| srgb = True | bool | — |
Returns:
void—public static void DrawBox(Vector3 mins, Vector3 maxs, Color color)
| Parameter | Type | Description |
|---|---|---|
| mins | Vector3 | — |
| maxs | Vector3 | — |
| color | Color | — |
Returns:
void—No results match this filter.
Properties1
Showing 1 properties
public static bool Editor.ToolRender.IsActiveView { get; set; }
Returns:
bool—No results match this filter.