// This file is automatically generated by a script based on the CommandBuilder API
using Unity.Burst;
using UnityEngine;
using System.Collections.Generic;
using Unity.Collections;
using Unity.Mathematics;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Jobs;
namespace Drawing {
///
/// Methods for easily drawing things in the editor and in standalone games.
///
/// See: getstarted (view in online documentation for working links)
///
public static class Draw {
internal static CommandBuilder builder;
internal static CommandBuilder ingame_builder;
///
/// Draws items in the editor and in standalone games, even if gizmos are disabled.
/// See: ingame (view in online documentation for working links)
///
public static ref CommandBuilder ingame {
get {
DrawingManager.Init();
return ref ingame_builder;
}
}
///
/// Draws items in the editor if gizmos are enabled.
/// All drawing methods on the static Draw class are forwarded to this command builder.
///
/// See: ingame (view in online documentation for working links)
///
public static ref CommandBuilder editor {
get {
DrawingManager.Init();
return ref builder;
}
}
/// \copydocref{CommandBuilder.xy}
public static CommandBuilder2D xy {
get {
DrawingManager.Init();
return new CommandBuilder2D(builder, true);
}
}
/// \copydocref{CommandBuilder.xz}
public static CommandBuilder2D xz {
get {
DrawingManager.Init();
return new CommandBuilder2D(builder, false);
}
}
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::WithMatrix(Matrix4x4)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeMatrix WithMatrix (Matrix4x4 matrix) {
DrawingManager.Init();
return builder.WithMatrix(matrix);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty WithMatrix (Matrix4x4 matrix) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::WithMatrix(float3x3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeMatrix WithMatrix (float3x3 matrix) {
DrawingManager.Init();
return builder.WithMatrix(matrix);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty WithMatrix (float3x3 matrix) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::WithColor(Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeColor WithColor (Color color) {
DrawingManager.Init();
return builder.WithColor(color);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty WithColor (Color color) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::WithDuration(float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopePersist WithDuration (float duration) {
DrawingManager.Init();
return builder.WithDuration(duration);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty WithDuration (float duration) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::WithLineWidth(float,bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeLineWidth WithLineWidth (float pixels, bool automaticJoins = true) {
DrawingManager.Init();
return builder.WithLineWidth(pixels, automaticJoins);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty WithLineWidth (float pixels, bool automaticJoins = true) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::InLocalSpace(Transform)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeMatrix InLocalSpace (Transform transform) {
DrawingManager.Init();
return builder.InLocalSpace(transform);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty InLocalSpace (Transform transform) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
#if UNITY_EDITOR
///
/// \copydocref{Drawing::CommandBuilder::InScreenSpace(Camera)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static CommandBuilder.ScopeMatrix InScreenSpace (Camera camera) {
DrawingManager.Init();
return builder.InScreenSpace(camera);
}
#else
[BurstDiscard]
public static CommandBuilder.ScopeEmpty InScreenSpace (Camera camera) {
// Do nothing in standlone builds
return new CommandBuilder.ScopeEmpty();
}
#endif
///
/// \copydocref{Drawing::CommandBuilder::PushMatrix(Matrix4x4)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushMatrix (Matrix4x4 matrix) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushMatrix(matrix);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushMatrix(float4x4)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushMatrix (float4x4 matrix) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushMatrix(matrix);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushSetMatrix(Matrix4x4)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushSetMatrix (Matrix4x4 matrix) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushSetMatrix(matrix);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushSetMatrix(float4x4)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushSetMatrix (float4x4 matrix) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushSetMatrix(matrix);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PopMatrix()}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PopMatrix () {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PopMatrix();
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushColor(Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushColor (Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushColor(color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PopColor()}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PopColor () {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PopColor();
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushDuration(float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushDuration (float duration) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushDuration(duration);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PopDuration()}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PopDuration () {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PopDuration();
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushPersist(float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Renamed to PushDuration for consistency")]
public static void PushPersist (float duration) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushPersist(duration);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PopPersist()}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Renamed to PopDuration for consistency")]
public static void PopPersist () {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PopPersist();
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PushLineWidth(float,bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PushLineWidth (float pixels, bool automaticJoins = true) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PushLineWidth(pixels, automaticJoins);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PopLineWidth()}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PopLineWidth () {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PopLineWidth();
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Line(float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Line (float3 a, float3 b) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Line(a, b);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Line(Vector3,Vector3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Line (Vector3 a, Vector3 b) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Line(a, b);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Line(Vector3,Vector3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Line (Vector3 a, Vector3 b, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Line(a, b, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Ray(float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Ray (float3 origin, float3 direction) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Ray(origin, direction);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Ray(Ray,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Ray (Ray ray, float length) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Ray(ray, length);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arc(float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arc (float3 center, float3 start, float3 end) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arc(center, start, end);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXZ(float3,float,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Circle instead")]
public static void CircleXZ (float3 center, float radius, float startAngle = 0f, float endAngle = 2 * Mathf.PI) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXZ(center, radius, startAngle, endAngle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXY(float3,float,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Circle instead")]
public static void CircleXY (float3 center, float radius, float startAngle = 0f, float endAngle = 2 * Mathf.PI) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXY(center, radius, startAngle, endAngle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Circle(float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Circle (float3 center, float3 normal, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Circle(center, normal, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidArc(float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidArc (float3 center, float3 start, float3 end) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidArc(center, start, end);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXZ(float3,float,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.SolidCircle instead")]
public static void SolidCircleXZ (float3 center, float radius, float startAngle = 0f, float endAngle = 2 * Mathf.PI) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXZ(center, radius, startAngle, endAngle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXY(float3,float,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.SolidCircle instead")]
public static void SolidCircleXY (float3 center, float radius, float startAngle = 0f, float endAngle = 2 * Mathf.PI) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXY(center, radius, startAngle, endAngle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircle(float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidCircle (float3 center, float3 normal, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircle(center, normal, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SphereOutline(float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SphereOutline (float3 center, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SphereOutline(center, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCylinder(float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCylinder (float3 bottom, float3 top, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCylinder(bottom, top, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCylinder(float3,float3,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCylinder (float3 position, float3 up, float height, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCylinder(position, up, height, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCapsule(float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCapsule (float3 start, float3 end, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCapsule(start, end, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCapsule(float3,float3,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCapsule (float3 position, float3 direction, float length, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCapsule(position, direction, length, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireSphere(float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireSphere (float3 position, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireSphere(position, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(List,bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (List points, bool cycle = false) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(Vector3[],bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (Vector3[] points, bool cycle = false) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(float3[],bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (float3[] points, bool cycle = false) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(NativeArray,bool)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (NativeArray points, bool cycle = false) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::DashedLine(float3,float3,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void DashedLine (float3 a, float3 b, float dash, float gap) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.DashedLine(a, b, dash, gap);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::DashedPolyline(List,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void DashedPolyline (List points, float dash, float gap) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.DashedPolyline(points, dash, gap);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (float3 center, float3 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(center, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(float3,quaternion,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (float3 center, quaternion rotation, float3 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(Bounds)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (Bounds bounds) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(bounds);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireMesh(Mesh)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireMesh (Mesh mesh) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireMesh(mesh);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireMesh(NativeArray,NativeArray)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireMesh (NativeArray vertices, NativeArray triangles) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireMesh(vertices, triangles);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidMesh(Mesh)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidMesh (Mesh mesh) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidMesh(mesh);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidMesh(List,List,List)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidMesh (List vertices, List triangles, List colors) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidMesh(vertices, triangles, colors);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidMesh(Vector3[],int[],Color[],int,int)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidMesh (Vector3[] vertices, int[] triangles, Color[] colors, int vertexCount, int indexCount) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidMesh(vertices, triangles, colors, vertexCount, indexCount);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Cross(float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Cross (float3 position, float size = 1) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Cross(position, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXZ(float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Cross instead")]
public static void CrossXZ (float3 position, float size = 1) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXZ(position, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXY(float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Cross instead")]
public static void CrossXY (float3 position, float size = 1) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXY(position, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Bezier(float3,float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Bezier (float3 p0, float3 p1, float3 p2, float3 p3) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Bezier(p0, p1, p2, p3);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CatmullRom(List)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void CatmullRom (List points) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CatmullRom(points);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CatmullRom(float3,float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void CatmullRom (float3 p0, float3 p1, float3 p2, float3 p3) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CatmullRom(p0, p1, p2, p3);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrow(float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrow (float3 from, float3 to) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrow(from, to);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrow(float3,float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrow (float3 from, float3 to, float3 up, float headSize) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrow(from, to, up, headSize);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::ArrowRelativeSizeHead(float3,float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void ArrowRelativeSizeHead (float3 from, float3 to, float3 up, float headFraction) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.ArrowRelativeSizeHead(from, to, up, headFraction);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrowhead(float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrowhead (float3 center, float3 direction, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrowhead(center, direction, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrowhead(float3,float3,float3,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrowhead (float3 center, float3 direction, float3 up, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrowhead(center, direction, up, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::ArrowheadArc(float3,float3,float,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void ArrowheadArc (float3 origin, float3 direction, float offset, float width = 60) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.ArrowheadArc(origin, direction, offset, width);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireGrid(float3,quaternion,int2,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireGrid (float3 center, quaternion rotation, int2 cells, float2 totalSize) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireGrid(center, rotation, cells, totalSize);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireTriangle(float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireTriangle (float3 a, float3 b, float3 c) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireTriangle(a, b, c);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangleXZ(float3,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.WireRectangle instead")]
public static void WireRectangleXZ (float3 center, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangleXZ(center, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangle(float3,quaternion,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireRectangle (float3 center, quaternion rotation, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangle(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangle(Rect)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.WireRectangle instead")]
public static void WireRectangle (Rect rect) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangle(rect);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireTriangle(float3,quaternion,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireTriangle (float3 center, quaternion rotation, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireTriangle(center, rotation, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePentagon(float3,quaternion,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePentagon (float3 center, quaternion rotation, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePentagon(center, rotation, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireHexagon(float3,quaternion,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireHexagon (float3 center, quaternion rotation, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireHexagon(center, rotation, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePolygon(float3,int,quaternion,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePolygon (float3 center, int vertices, quaternion rotation, float radius) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePolygon(center, vertices, rotation, radius);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidRectangle(Rect)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.SolidRectangle instead")]
public static void SolidRectangle (Rect rect) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidRectangle(rect);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidPlane(float3,float3,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidPlane (float3 center, float3 normal, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidPlane(center, normal, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidPlane(float3,quaternion,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidPlane (float3 center, quaternion rotation, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidPlane(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePlane(float3,float3,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePlane (float3 center, float3 normal, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePlane(center, normal, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePlane(float3,quaternion,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePlane (float3 center, quaternion rotation, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePlane(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PlaneWithNormal(float3,float3,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PlaneWithNormal (float3 center, float3 normal, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PlaneWithNormal(center, normal, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PlaneWithNormal(float3,quaternion,float2)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PlaneWithNormal (float3 center, quaternion rotation, float2 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PlaneWithNormal(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidTriangle(float3,float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidTriangle (float3 a, float3 b, float3 c) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidTriangle(a, b, c);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(float3,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (float3 center, float3 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(center, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(Bounds)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (Bounds bounds) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(bounds);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(float3,quaternion,float3)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (float3 center, quaternion rotation, float3 size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(center, rotation, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,string,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, string text, float size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, text, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,string,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, string text, float size, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, text, size, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,string,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, string text, float sizeInPixels = 14) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, text, sizeInPixels);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,string,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, string text, float sizeInPixels, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, text, sizeInPixels, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString32Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString32Bytes text, float sizeInPixels = 14) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString64Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString64Bytes text, float sizeInPixels = 14) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString128Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString128Bytes text, float sizeInPixels = 14) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString512Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString512Bytes text, float sizeInPixels = 14) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString32Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString32Bytes text, float sizeInPixels, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString64Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString64Bytes text, float sizeInPixels, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString128Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString128Bytes text, float sizeInPixels, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString512Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString512Bytes text, float sizeInPixels, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString32Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString32Bytes text, float size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString64Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString64Bytes text, float size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString128Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString128Bytes text, float size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString512Bytes,float)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString512Bytes text, float size) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString32Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString32Bytes text, float size, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString64Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString64Bytes text, float size, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString128Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString128Bytes text, float size, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString512Bytes,float,LabelAlignment)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString512Bytes text, float size, LabelAlignment alignment) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Line(float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Line (float3 a, float3 b, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Line(a, b, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Ray(float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Ray (float3 origin, float3 direction, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Ray(origin, direction, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Ray(Ray,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Ray (Ray ray, float length, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Ray(ray, length, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arc(float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arc (float3 center, float3 start, float3 end, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arc(center, start, end, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXZ(float3,float,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Circle instead")]
public static void CircleXZ (float3 center, float radius, float startAngle, float endAngle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXZ(center, radius, startAngle, endAngle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXZ(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Circle instead")]
public static void CircleXZ (float3 center, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXZ(center, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXY(float3,float,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Circle instead")]
public static void CircleXY (float3 center, float radius, float startAngle, float endAngle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXY(center, radius, startAngle, endAngle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CircleXY(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Circle instead")]
public static void CircleXY (float3 center, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CircleXY(center, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Circle(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Circle (float3 center, float3 normal, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Circle(center, normal, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidArc(float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidArc (float3 center, float3 start, float3 end, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidArc(center, start, end, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXZ(float3,float,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.SolidCircle instead")]
public static void SolidCircleXZ (float3 center, float radius, float startAngle, float endAngle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXZ(center, radius, startAngle, endAngle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXZ(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.SolidCircle instead")]
public static void SolidCircleXZ (float3 center, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXZ(center, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXY(float3,float,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.SolidCircle instead")]
public static void SolidCircleXY (float3 center, float radius, float startAngle, float endAngle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXY(center, radius, startAngle, endAngle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircleXY(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.SolidCircle instead")]
public static void SolidCircleXY (float3 center, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircleXY(center, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidCircle(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidCircle (float3 center, float3 normal, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidCircle(center, normal, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SphereOutline(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SphereOutline (float3 center, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SphereOutline(center, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCylinder(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCylinder (float3 bottom, float3 top, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCylinder(bottom, top, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCylinder(float3,float3,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCylinder (float3 position, float3 up, float height, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCylinder(position, up, height, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCapsule(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCapsule (float3 start, float3 end, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCapsule(start, end, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireCapsule(float3,float3,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireCapsule (float3 position, float3 direction, float length, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireCapsule(position, direction, length, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireSphere(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireSphere (float3 position, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireSphere(position, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(List,bool,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (List points, bool cycle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(List,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (List points, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(Vector3[],bool,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (Vector3[] points, bool cycle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(Vector3[],Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (Vector3[] points, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(float3[],bool,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (float3[] points, bool cycle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(float3[],Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (float3[] points, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(NativeArray,bool,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (NativeArray points, bool cycle, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, cycle, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Polyline(NativeArray,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Polyline (NativeArray points, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Polyline(points, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::DashedLine(float3,float3,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void DashedLine (float3 a, float3 b, float dash, float gap, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.DashedLine(a, b, dash, gap, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::DashedPolyline(List,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void DashedPolyline (List points, float dash, float gap, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.DashedPolyline(points, dash, gap, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (float3 center, float3 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(center, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(float3,quaternion,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (float3 center, quaternion rotation, float3 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireBox(Bounds,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireBox (Bounds bounds, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireBox(bounds, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireMesh(Mesh,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireMesh (Mesh mesh, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireMesh(mesh, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireMesh(NativeArray,NativeArray,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireMesh (NativeArray vertices, NativeArray triangles, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireMesh(vertices, triangles, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidMesh(Mesh,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidMesh (Mesh mesh, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidMesh(mesh, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Cross(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Cross (float3 position, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Cross(position, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Cross(float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Cross (float3 position, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Cross(position, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXZ(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Cross instead")]
public static void CrossXZ (float3 position, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXZ(position, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXZ(float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.Cross instead")]
public static void CrossXZ (float3 position, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXZ(position, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXY(float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Cross instead")]
public static void CrossXY (float3 position, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXY(position, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CrossXY(float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.Cross instead")]
public static void CrossXY (float3 position, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CrossXY(position, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Bezier(float3,float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Bezier (float3 p0, float3 p1, float3 p2, float3 p3, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Bezier(p0, p1, p2, p3, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CatmullRom(List,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void CatmullRom (List points, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CatmullRom(points, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::CatmullRom(float3,float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void CatmullRom (float3 p0, float3 p1, float3 p2, float3 p3, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.CatmullRom(p0, p1, p2, p3, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrow(float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrow (float3 from, float3 to, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrow(from, to, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrow(float3,float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrow (float3 from, float3 to, float3 up, float headSize, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrow(from, to, up, headSize, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::ArrowRelativeSizeHead(float3,float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void ArrowRelativeSizeHead (float3 from, float3 to, float3 up, float headFraction, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.ArrowRelativeSizeHead(from, to, up, headFraction, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrowhead(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrowhead (float3 center, float3 direction, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrowhead(center, direction, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Arrowhead(float3,float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Arrowhead (float3 center, float3 direction, float3 up, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Arrowhead(center, direction, up, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::ArrowheadArc(float3,float3,float,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void ArrowheadArc (float3 origin, float3 direction, float offset, float width, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.ArrowheadArc(origin, direction, offset, width, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::ArrowheadArc(float3,float3,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void ArrowheadArc (float3 origin, float3 direction, float offset, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.ArrowheadArc(origin, direction, offset, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireGrid(float3,quaternion,int2,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireGrid (float3 center, quaternion rotation, int2 cells, float2 totalSize, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireGrid(center, rotation, cells, totalSize, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireTriangle(float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireTriangle (float3 a, float3 b, float3 c, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireTriangle(a, b, c, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangleXZ(float3,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xz.WireRectangle instead")]
public static void WireRectangleXZ (float3 center, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangleXZ(center, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangle(float3,quaternion,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireRectangle (float3 center, quaternion rotation, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangle(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireRectangle(Rect,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.WireRectangle instead")]
public static void WireRectangle (Rect rect, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireRectangle(rect, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireTriangle(float3,quaternion,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireTriangle (float3 center, quaternion rotation, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireTriangle(center, rotation, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePentagon(float3,quaternion,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePentagon (float3 center, quaternion rotation, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePentagon(center, rotation, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WireHexagon(float3,quaternion,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WireHexagon (float3 center, quaternion rotation, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WireHexagon(center, rotation, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePolygon(float3,int,quaternion,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePolygon (float3 center, int vertices, quaternion rotation, float radius, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePolygon(center, vertices, rotation, radius, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidRectangle(Rect,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
[System.Obsolete("Use Draw.xy.SolidRectangle instead")]
public static void SolidRectangle (Rect rect, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidRectangle(rect, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidPlane(float3,float3,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidPlane (float3 center, float3 normal, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidPlane(center, normal, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidPlane(float3,quaternion,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidPlane (float3 center, quaternion rotation, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidPlane(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePlane(float3,float3,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePlane (float3 center, float3 normal, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePlane(center, normal, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::WirePlane(float3,quaternion,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void WirePlane (float3 center, quaternion rotation, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.WirePlane(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PlaneWithNormal(float3,float3,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PlaneWithNormal (float3 center, float3 normal, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PlaneWithNormal(center, normal, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::PlaneWithNormal(float3,quaternion,float2,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void PlaneWithNormal (float3 center, quaternion rotation, float2 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.PlaneWithNormal(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidTriangle(float3,float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidTriangle (float3 a, float3 b, float3 c, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidTriangle(a, b, c, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(float3,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (float3 center, float3 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(center, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(Bounds,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (Bounds bounds, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(bounds, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::SolidBox(float3,quaternion,float3,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void SolidBox (float3 center, quaternion rotation, float3 size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.SolidBox(center, rotation, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,string,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, string text, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, text, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,string,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, string text, float size, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, text, size, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,string,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, string text, float sizeInPixels, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, text, sizeInPixels, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,string,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, string text, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, text, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,string,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, string text, float sizeInPixels, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, text, sizeInPixels, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString32Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString32Bytes text, float sizeInPixels, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString32Bytes,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString32Bytes text, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString64Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString64Bytes text, float sizeInPixels, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString64Bytes,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString64Bytes text, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString128Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString128Bytes text, float sizeInPixels, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString128Bytes,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString128Bytes text, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString512Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString512Bytes text, float sizeInPixels, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString512Bytes,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString512Bytes text, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString32Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString32Bytes text, float sizeInPixels, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString64Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString64Bytes text, float sizeInPixels, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString128Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString128Bytes text, float sizeInPixels, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label2D(float3,FixedString512Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label2D (float3 position, ref FixedString512Bytes text, float sizeInPixels, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label2D(position, ref text, sizeInPixels, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString32Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString32Bytes text, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString64Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString64Bytes text, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString128Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString128Bytes text, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString512Bytes,float,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString512Bytes text, float size, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString32Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString32Bytes text, float size, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString64Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString64Bytes text, float size, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString128Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString128Bytes text, float size, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment, color);
#endif
}
///
/// \copydocref{Drawing::CommandBuilder::Label3D(float3,quaternion,FixedString512Bytes,float,LabelAlignment,Color)}
/// Warning: This method cannot be used inside of Burst jobs. See job-system (view in online documentation for working links) instead.
///
[BurstDiscard]
public static void Label3D (float3 position, quaternion rotation, ref FixedString512Bytes text, float size, LabelAlignment alignment, Color color) {
#if UNITY_EDITOR
DrawingManager.Init();
builder.Label3D(position, rotation, ref text, size, alignment, color);
#endif
}
}
}