Immediate Mode Draw v1.4.4
API Reference
IMDraw.SetTarget (IMDrawCamera camera)
IMDraw.Flush()
IMDraw.Flush(IMDrawCamera camera)
IMDraw.FlushAll ()
IMDraw.SetDefaultZTest ()
IMDrawZTest IMDraw.ZTest
IMDraw.Line3D (Vector3 from, Vector3 to, Color color, float duration = 0.0f)
IMDraw.Line3D (Vector3 from, Vector3 to, Color fromColor, Color toColor, float duration = 0.0f)
IMDraw.Ray3D(Ray ray, float length, Color color, float duration = 0.0f)
IMDraw.Ray3D(Ray ray, float length, Color fromColor, Color toColor, float duration = 0.0f)
IMDraw.Ray3D(Vector3 origin, Vector3 direction, float length, Color color, float duration = 0.0f)
IMDraw.Ray3D(Vector3 origin, Vector3 direction, float length, Color startColor, Color endColor, float duration = 0.0f)
IMDraw.Quad3D (Vector3 center, Quaternion rotation, float sizeX, float sizeY, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.WireBox3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
IMDraw.WireBox3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
IMDraw.Box3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
IMDraw.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
IMDraw.WirePyramid3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.WireRhombus3D (Vector3 center, Quaternion rotation, float length, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Arc3D (Vector3 origin, Quaternion rotation, float radius, float sectorAngle, Color color, float duration = 0.0f)
IMDraw.Arc3D (Vector3 origin, Quaternion rotation, float innerRadius, float outerRadius, float directionAngle, float sectorAngle, Color color, float duration = 0.0f)
IMDraw.WireDisc3D (Vector3 origin, Quaternion rotation, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Disc3D (Vector3 origin, Quaternion rotation, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.WireSphere3D (Vector3 center, float radius, Color color, float duration = 0.0f)
IMDraw.WireSphere3D (Vector3 center, Quaternion rotation, float radius, Color color, float duration = 0.0f)
IMDraw.Sphere3D (Vector3 center, float radius, Color color, float duration = 0.0f)
IMDraw.Sphere3D (Vector3 center, Quaternion rotation, float radius, Color color, float duration = 0.0f)
IMDraw.WireEllipsoid3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
IMDraw.WireEllipsoid3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
IMDraw.Ellipsoid3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
IMDraw.Ellipsoid3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
IMDraw.WireCone3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.WireCone3D(Vector3 origin, Vector3 direction, float length, float angle, Color color, float duration = 0.0f)
IMDraw.Cone3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Cone3D(Vector3 origin, Vector3 direction, float length, float angle, Color color, float duration = 0.0f)
IMDraw.WireCapsule3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Capsule3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.WireCylinder3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Cylinder3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Axis3D (Vector3 origin, Quaternion rotation, float length, float alpha, float duration = 0.0f)
IMDraw.Axis3D(Vector3 origin, Quaternion rotation, Vector3 length, float alpha, float duration = 0.0f)
IMDraw.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, IMDrawAxis axis, Color color, float duration = 0.0f)
IMDraw.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, Color color, float duration = 0.0f)
IMDraw.GridPoint3D(Vector3 origin, Quaternion rotation, float extents, Color color, float duration = 0.0f)
IMDraw.GridPoint3D (Vector3 origin, Quaternion rotation, Vector3 extents, Color color, float duration = 0.0f)
IMDraw.Bounds (Bounds bounds, Color color)
IMDraw.Bounds (Renderer renderer, Color color)
IMDraw.Collider (SphereCollider sphereCollider, Color color, float scaleOffset, bool solid)
IMDraw.Collider (BoxCollider boxCollider, Color color, float scaleOffset, bool solid)
IMDraw.Collider (CapsuleCollider capsuleCollider, Color color, float scaleOffset, bool solid)
IMDraw.Collider (WheelCollider wheelCollider, Color color, float scaleOffset, bool solid)
IMDraw.Collider (MeshCollider meshCollider, Color color, float scaleOffset)
IMDraw.Collider (Collider collider, Color color, float scaleOffset, bool solid)
IMDraw.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color, float duration = 0.0f)
IMDraw.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color, float duration = 0.0f)
IMDraw.Spotlight (Light light, Color wireFrameColor, Color solidColour)
IMDraw.Frustum (Camera camera, Color color)
IMDraw.Label (float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.Label(float x, float y, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed(float x, float y, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.Label (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.Label(Vector3 position, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed(Vector3 position, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.Label (Vector3 position, float positionOffsetX, float positionOffsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.Label (Vector3 position, float positionOffsetX, float positionOffsetY, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed(Vector3 position, float positionOffsetX, float positionOffsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
IMDraw.LabelShadowed(Vector3 position, float positionOffsetX, float positionOffsetY, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Vector2 IMDraw.GetLabelSize (string text)
IMDraw.RectangleOutline2D (Rect rect, Color color, float duration = 0.0f)
IMDraw.RectangleFilled2D (Rect rect, Color color, float duration = 0.0f)
IMDraw.Rectangle2D (Rect rect, Color fillColor, Color outlineColor, float duration = 0.0f)
IMDraw.Image2D(Texture2D texture, Rect rect, Color color, float duration = 0.0f)
IMDraw.Image2D (Texture2D texture, Rect rect, Rect texCoord, Color color, float duration = 0.0f)
IMDraw.Image2D(Texture2D texture, Rect rect, ScaleMode scaleMode, float aspect, Color color, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, string label, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float widthScale, float heightScale, Color color, string label, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float widthScale, float heightScale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, bool fixedScale, string label, float duration = 0.0f)
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, TextAlignment alignment, TextAnchor anchor, bool fixedScale, string label, float duration = 0.0f)
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float scale, Color color, string label, float duration = 0.0f)
IMDraw.TextMesh (Vector3 position, Quaternion rotation, float scale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float widthScale, float heightScale, Color color, string label, float duration = 0.0f)
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float widthScale, float heightScale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
IMGizmos.SetDefaultZTest()
IMDrawZTest IMGizmos.ZTest
IMGizmos.Line3D (Vector3 from, Vector3 to, Color color)
IMGizmos.Ray3D (Ray ray, float length, Color color)
IMGizmos.Ray3D (Vector3 origin, Vector3 direction, float length, Color color)
IMGizmos.Ray3D (Vector3 origin, Quaternion rotation, float length, Color color)
IMGizmos.WireQuad3D(Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color color)
IMGizmos.Quad3D (Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color color)
IMGizmos.Quad3D(Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireBox3D (Vector3 center, Quaternion rotation, Vector3 size, Color color)
IMGizmos.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color color)
IMGizmos.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color solidColor, Color wireframeColor)
IMGizmos.WirePyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireRhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.Arc3D(Vector3 center, Quaternion rotation, float radius, float sectorAngle, Color color)
IMGizmos.Arc3D(Vector3 center, Quaternion rotation, float innerRadius, float outerRadius, float directionAngle, float sectorAngle, Color color)
IMGizmos.WireDisc3D (Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Disc3D(Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Disc3D(Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireSphere3D(Vector3 center, Quaternion rotation, float radius, Color color)
IMGizmos.Sphere3D(Vector3 center, Quaternion rotation, float radius, Color color)
IMGizmos.Sphere3D(Vector3 center, Quaternion rotation, float radius, Color solidColor, Color wireframeColor)
IMGizmos.WireEllipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color color)
IMGizmos.Ellipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color color)
IMGizmos.Ellipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color solidColor, Color wireframeColor)
IMGizmos.WireCone3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Cone3D (Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
IMGizmos.Cone3D (Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireCapsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Capsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Capsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireCylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Cylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
IMGizmos.Cylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
IMGizmos.WireMesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color)
IMGizmos.WireMesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color)
IMGizmos.WireMesh(Mesh mesh, Transform tf, Color color)
IMGizmos.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color)
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color)
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Color solidColor, Color wireframeColor)
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color solidColor, Color wireframeColor)
IMGizmos.Axis3D(Vector3 origin, Quaternion rotation, float length, float alpha)
IMGizmos.Axis3D(Vector3 origin, Quaternion rotation, Vector3 length, float alpha)
IMGizmos.AxisGridPoint3D (Vector3 origin, Quaternion rotation, Vector3 halfLength, float alpha)
IMGizmos.GridPoint3D (Vector3 origin, Quaternion rotation, float extents, Color color)
IMGizmos.GridPoint3D (Vector3 origin, Quaternion rotation, Vector3 extents, Color color)
IMGizmos.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, GizmoDrawAxis axis, Color color)
IMGizmos.Bounds (Bounds bounds, Color color)
IMGizmos.Bounds (Renderer renderer, Color color)
IMGizmos.Label(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, int fontSize = 12)
IMGizmos.LabelShadowed(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, int fontSize = 12)
IMGizmos.Label (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
IMGizmos.LabelShadowed(Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
IMGizmos.Label(Vector3 position, float offsetX, float offsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
IMGizmos.LabelShadowed (Vector3 position, float offsetX, float offsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
IMGizmos.Image (Rect rect, Color color, Texture2D texture)
IMDraw.SetTarget (IMDrawCamera camera)
Set a camera as the draw target.
| Parameters |
| camera | Target camera. |
Back to top
IMDraw.Flush()
Flush draw commands on the current target camera.
Back to top
IMDraw.Flush(IMDrawCamera camera)
Flush draw commands for specified camera.
| Parameters |
| camera | Target IMDrawCamera. |
Back to top
IMDraw.FlushAll ()
IMDraw.SetDefaultZTest ()
Set current draw mode to use default Z testing (LEqual). Only affects GL primitives, meshes and text meshes.
Back to top
IMDrawZTest IMDraw.ZTest
Set/get current draw mode to use specified Z testing. Only affects GL primitives, meshes and text meshes.
Back to top
IMDraw.Line3D (Vector3 from, Vector3 to, Color color, float duration = 0.0f)
Draw a 3D line.
| Parameters |
| from | Starting point of the line. |
| to | Ending point of the line. |
| color | Line color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Line3D (Vector3 from, Vector3 to, Color fromColor, Color toColor, float duration = 0.0f)
Draw a 3D line.
| Parameters |
| from | Starting point of the line. |
| to | Ending point of the line. |
| fromColor | Color of line from the starting point. |
| toColor | Color of line from the ending point. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ray3D(Ray ray, float length, Color color, float duration = 0.0f)
Draw a 3D ray.
| Parameters |
| ray | Source ray. |
| length | Length of line. |
| color | Ray color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ray3D(Ray ray, float length, Color fromColor, Color toColor, float duration = 0.0f)
Draw a 3D ray.
| Parameters |
| ray | Source ray. |
| length | Length of line. |
| fromColor | Color of line from the starting point. |
| toColor | Color of line from the ending point. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ray3D(Vector3 origin, Vector3 direction, float length, Color color, float duration = 0.0f)
Draw a 3D ray.
| Parameters |
| origin | Origin of ray. |
| direction | Direction of ray (assumed to be normalised). |
| length | Length of line. |
| color | Ray color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ray3D(Vector3 origin, Vector3 direction, float length, Color startColor, Color endColor, float duration = 0.0f)
Draw a 3D ray.
| Parameters |
| origin | Origin of ray. |
| direction | Direction of ray (assumed to be normalised). |
| length | Length of line. |
| startColor | Color of line from starting point of the ray. |
| endColor | Color of line from ending point of the ray. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Quad3D (Vector3 center, Quaternion rotation, float sizeX, float sizeY, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a 3D quad.
| Parameters |
| center | Quad center position. |
| rotation | Quad rotation. |
| sizeX | Width of quad. |
| sizeY | Height of quad. |
| axis | Orientation axis of quad. |
| color | Quad color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireBox3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
Draw an axis aligned wireframe 3D box.
| Parameters |
| center | Box center position. |
| size | Box extents. |
| color | Box color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireBox3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
Draw a rotated wireframe 3D box.
| Parameters |
| center | Box center position. |
| rotation | Box orientation. |
| size | Box extents. |
| color | Box color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Box3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
Draw an axis aligned solid 3D box.
| Parameters |
| center | Box center position. |
| size | Box extents. |
| color | Box color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
Draw a rotated solid 3D box.
| Parameters |
| center | Box center position. |
| rotation | Box orientation. |
| size | Box extents. |
| color | Box color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WirePyramid3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D pyramid.
| Parameters |
| position | Pyramid base position. |
| rotation | Pyramid rotation. |
| height | Pyramid height. |
| width | Pyramid base width. |
| axis | Pyramid reference axis. |
| color | Pyramid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a 3D pyramid.
| Parameters |
| position | Pyramid base position. |
| rotation | Pyramid rotation. |
| height | Pyramid height. |
| width | Pyramid base width. |
| axis | Pyramid reference axis. |
| color | Pyramid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireRhombus3D (Vector3 center, Quaternion rotation, float length, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D rhombus.
| Parameters |
| center | Rhombus center. |
| rotation | Rhombus rotation. |
| length | Rhombus length. |
| width | Rhombus width. |
| axis | Rhombus reference axis. |
| color | Rhombus color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a 3D rhombus.
| Parameters |
| center | Rhombus center. |
| rotation | Rhombus rotation. |
| length | Rhombus length. |
| width | Rhombus width. |
| axis | Rhombus reference axis. |
| color | Rhombus color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Arc3D (Vector3 origin, Quaternion rotation, float radius, float sectorAngle, Color color, float duration = 0.0f)
Draw a solid filled arc in the Y-axis.
| Parameters |
| origin | Arc origin. |
| rotation | Arc rotation. |
| radius | Arc radius. |
| sectorAngle | Arc angle of sector, in degrees. |
| color | Arc color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Arc3D (Vector3 origin, Quaternion rotation, float innerRadius, float outerRadius, float directionAngle, float sectorAngle, Color color, float duration = 0.0f)
Draw a solid filled arc in the Y-axis.
| Parameters |
| origin | Arc origin. |
| rotation | Arc rotation. |
| innerRadius | Arc inner radius. |
| outerRadius | Arc outer radius. |
| directionAngle | Arc angular direction (clockwise), in degrees. |
| sectorAngle | Arc angle of sector, in degrees. |
| color | Arc color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireDisc3D (Vector3 origin, Quaternion rotation, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D disc.
| Parameters |
| origin | Disc origin. |
| rotation | Disc orientation. |
| radius | Disc radius. |
| axis | Orientation axis. |
| color | Disc color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Disc3D (Vector3 origin, Quaternion rotation, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a solid 3D disc.
| Parameters |
| origin | Disc origin. |
| rotation | Disc orientation. |
| radius | Disc radius. |
| axis | Orientation axis. |
| color | Disc color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireSphere3D (Vector3 center, float radius, Color color, float duration = 0.0f)
Draw a wireframe 3D sphere.
| Parameters |
| center | Sphere center. |
| radius | Sphere radius. |
| color | Sphere color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireSphere3D (Vector3 center, Quaternion rotation, float radius, Color color, float duration = 0.0f)
Draw a wireframe 3D sphere.
| Parameters |
| center | Sphere center. |
| rotation | Sphere rotation. |
| radius | Sphere radius. |
| color | Sphere color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Sphere3D (Vector3 center, float radius, Color color, float duration = 0.0f)
Draw a solid 3D sphere.
| Parameters |
| center | Sphere center. |
| radius | Sphere radius. |
| color | Sphere color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Sphere3D (Vector3 center, Quaternion rotation, float radius, Color color, float duration = 0.0f)
Draw a solid 3D sphere.
| Parameters |
| center | Sphere center. |
| rotation | Sphere rotation. |
| radius | Sphere radius. |
| color | Sphere color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireEllipsoid3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
Draw a wireframe 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| size | Ellipsoid size. |
| color | Ellipsoid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireEllipsoid3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
Draw a wireframe 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| rotation | Ellipsoid rotation. |
| size | Ellipsoid size. |
| color | Ellipsoid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ellipsoid3D (Vector3 center, Vector3 size, Color color, float duration = 0.0f)
Draw a solid 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| size | Ellipsoid size. |
| color | Ellipsoid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Ellipsoid3D (Vector3 center, Quaternion rotation, Vector3 size, Color color, float duration = 0.0f)
Draw a solid 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| rotation | Ellipsoid rotation. |
| size | Ellipsoid size. |
| color | Ellipsoid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireCone3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D cone.
| Parameters |
| position | Cone position (origin is located at the base). |
| rotation | Cone rotation. |
| height | Cone height. |
| width | Cone base width. |
| axis | Cone reference axis. |
| color | Cone color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireCone3D(Vector3 origin, Vector3 direction, float length, float angle, Color color, float duration = 0.0f)
Draw a wireframe 3D cone.
| Parameters |
| origin | Cone start position. |
| direction | Cone direction (assumes direction is normalized). |
| length | Cone length. |
| angle | Cone spread angle (in degrees). |
| color | Cone color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Cone3D(Vector3 position, Quaternion rotation, float height, float width, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a 3D cone.
| Parameters |
| position | Cone position (origin is located at the base). |
| rotation | Cone rotation. |
| height | Cone height. |
| width | Cone base width. |
| axis | Cone reference axis. |
| color | Cone color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Cone3D(Vector3 origin, Vector3 direction, float length, float angle, Color color, float duration = 0.0f)
Draw a 3D cone.
| Parameters |
| origin | Cone start position. |
| direction | Cone direction (assumes direction is normalized). |
| length | Cone length. |
| angle | Cone spread angle (in degrees). |
| color | Cone color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireCapsule3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D capsule.
| Parameters |
| center | Capsule center. |
| rotation | Capsule rotation. |
| height | Capsule height. |
| radius | Capsule radius. |
| axis | Capsule reference axis. |
| color | Capsule color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Capsule3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a solid 3D capsule.
| Parameters |
| center | Capsule center. |
| rotation | Capsule rotation. |
| height | Capsule height. |
| radius | Capsule radius. |
| axis | Capsule reference axis. |
| color | Capsule color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.WireCylinder3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a wireframe 3D cylinder.
| Parameters |
| center | Cylinder center. |
| rotation | Cylinder rotation. |
| height | Cylinder height. |
| radius | Cylinder radius. |
| axis | Cylinder reference axis. |
| color | Cylinder color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Cylinder3D (Vector3 center, Quaternion rotation, float height, float radius, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a solid 3D cylinder.
| Parameters |
| center | Cylinder center. |
| rotation | Cylinder rotation. |
| height | Cylinder height. |
| radius | Cylinder radius. |
| axis | Cylinder reference axis. |
| color | Cylinder color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Axis3D (Vector3 origin, Quaternion rotation, float length, float alpha, float duration = 0.0f)
Draw a 3-dimensional axis (X-axis=red, Y-axis=green, Z-axis=blue).
| Parameters |
| origin | Axis origin. |
| rotation | Axis rotation. |
| length | Length of axis lines. |
| alpha | Axis transparency. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Axis3D(Vector3 origin, Quaternion rotation, Vector3 length, float alpha, float duration = 0.0f)
Draw a 3-dimensional axis (X-axis=red, Y-axis=green, Z-axis=blue).
| Parameters |
| origin | Axis origin. |
| rotation | Axis rotation. |
| length | Extents of axis lines. |
| alpha | Axis transparency. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, IMDrawAxis axis, Color color, float duration = 0.0f)
Draw a 3D grid in a specified plane.
| Parameters |
| origin | Grid origin. |
| rotation | Grid orientation. |
| extentX | Grid width. |
| extentY | Grid height. |
| cellsX | Number of cells along the width. |
| cellsY | Number of cells along the height. |
| axis | The reference plane for the grid. |
| color | Grid color. |
Back to top
IMDraw.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, Color color, float duration = 0.0f)
Draw a 3D grid in the X/Z plane.
| Parameters |
| origin | Grid origin. |
| rotation | Grid orientation. |
| extentX | Grid width. |
| extentY | Grid height. |
| cellsX | Number of cells along the width. |
| cellsY | Number of cells along the height. |
| color | Grid color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.GridPoint3D(Vector3 origin, Quaternion rotation, float extents, Color color, float duration = 0.0f)
Draw a 3D grid point.
| Parameters |
| origin | Grid point origin. |
| rotation | Grid point orientation. |
| extents | Grid point extents. |
| color | Grid point colour. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.GridPoint3D (Vector3 origin, Quaternion rotation, Vector3 extents, Color color, float duration = 0.0f)
Draw a 3D grid point.
| Parameters |
| origin | Grid point origin. |
| rotation | Grid point orientation. |
| extents | Grid point XYZ extents. |
| color | Grid point colour. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Bounds (Bounds bounds, Color color)
Draw 3D bounds (an axis aligned box).
| Parameters |
| bounds | Bounds that specifies a position and extents. |
| color | Bounds color. |
Back to top
IMDraw.Bounds (Renderer renderer, Color color)
Draw the 3D bounds for a renderer (note: only draws bounds if renderer is visible).
| Parameters |
| renderer | Renderer whose bounds will be drawn. |
| color | Bounds color. |
Back to top
IMDraw.Collider (SphereCollider sphereCollider, Color color, float scaleOffset, bool solid)
Draw a sphere collider shape.
| Parameters |
| sphereCollider | Target SphereCollider object. |
| color | Sphere color. |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
| solid | Specify if a solid shape should be drawn. |
Back to top
IMDraw.Collider (BoxCollider boxCollider, Color color, float scaleOffset, bool solid)
Draw a box collider shape.
| Parameters |
| boxCollider | Target BoxCollider object. |
| color | Box color. |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
| solid | Specify if a solid shape should be drawn. |
Back to top
IMDraw.Collider (CapsuleCollider capsuleCollider, Color color, float scaleOffset, bool solid)
Draw a capsule collider shape.
| Parameters |
| capsuleCollider | CapsuleCollider object. |
| color | Capsule color. |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
| solid | Specify if a solid shape should be drawn. |
Back to top
IMDraw.Collider (WheelCollider wheelCollider, Color color, float scaleOffset, bool solid)
Draw a wheel collider shape.
| Parameters |
| wheelCollider | WheelCollider object. |
| color | Wheel collider color. |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
| solid | Specify if a solid shape should be drawn. |
Back to top
IMDraw.Collider (MeshCollider meshCollider, Color color, float scaleOffset)
Draw a mesh collider shape.
| Parameters |
| meshCollider | MeshCollider object. |
| color | Mesh color. |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
Back to top
IMDraw.Collider (Collider collider, Color color, float scaleOffset, bool solid)
Draw a collider shape.
| Parameters |
| collider | Collider object. |
| color | |
| scaleOffset | Specify a scale offset (0=no scale change). Useful for situations where the visualisation overlaps geometry. |
| solid | Specify if a solid shape should be drawn. |
Back to top
IMDraw.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color, float duration = 0.0f)
Draw a mesh.
| Parameters |
| mesh | Mesh object. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| color | Mesh color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color, float duration = 0.0f)
Draw a mesh.
| Parameters |
| mesh | Mesh object. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| scale | |
| color | Mesh color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Spotlight (Light light, Color wireFrameColor, Color solidColour)
Draw the coverage volume of a spotlight.
| Parameters |
| light | Source spotlight. |
| wireFrameColor | Wireframe color. |
| solidColour | Solid color. |
Back to top
IMDraw.Frustum (Camera camera, Color color)
Draw a wireframe representation a camera's view frustum.
| Parameters |
| camera | Source camera. |
| color | Frustum color. |
Back to top
IMDraw.Label (float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 2D label. [Not VR compatible]
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Label(float x, float y, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 2D label.
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 2D label with a drop shadow.
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed(float x, float y, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 2D label with a drop shadow.
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Label (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Label(Vector3 position, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label with a drop shadow.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed(Vector3 position, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label with a drop shadow.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Label (Vector3 position, float positionOffsetX, float positionOffsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label.
| Parameters |
| position | Label 3D position. |
| positionOffsetX | Specifies an additional screen X position offset. |
| positionOffsetY | Specifies an additional screen Y position offset. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Label (Vector3 position, float positionOffsetX, float positionOffsetY, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label.
| Parameters |
| position | Label 3D position. |
| positionOffsetX | Specifies an additional screen X position offset. |
| positionOffsetY | Specifies an additional screen Y position offset. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed(Vector3 position, float positionOffsetX, float positionOffsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label with a drop shadow.
| Parameters |
| position | Label 3D position. |
| positionOffsetX | Specifies an additional screen X position offset. |
| positionOffsetY | Specifies an additional screen Y position offset. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.LabelShadowed(Vector3 position, float positionOffsetX, float positionOffsetY, Color color, int fontSize, LabelPivot pivot, LabelAlignment alignment, string label, float duration = 0.0f)
Draw a 3D label with a drop shadow.
| Parameters |
| position | Label 3D position. |
| positionOffsetX | Specifies an additional screen X position offset. |
| positionOffsetY | Specifies an additional screen Y position offset. |
| color | Label color. |
| fontSize | Font size. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
Vector2 IMDraw.GetLabelSize (string text)
Calculate the width and height of text for the current camera GUI font style.
| Parameters |
| text | Text to be measured. |
| Returns |
| Vector2 | The width & height of the label. |
Back to top
IMDraw.RectangleOutline2D (Rect rect, Color color, float duration = 0.0f)
Draw a 2D rectangle outline.
| Parameters |
| rect | Screen space position, width and height of the rectangle. |
| color | Outline color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.RectangleFilled2D (Rect rect, Color color, float duration = 0.0f)
Draw a filled 2D rectangle.
| Parameters |
| rect | Screen space position, width and height of the rectangle. |
| color | Fill color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Rectangle2D (Rect rect, Color fillColor, Color outlineColor, float duration = 0.0f)
Draw a 2D rectangle.
| Parameters |
| rect | Screen space position, width and height of the rectangle. |
| fillColor | Fill color. |
| outlineColor | Outline color. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Image2D(Texture2D texture, Rect rect, Color color, float duration = 0.0f)
Draw a 2D image.
| Parameters |
| texture | Source texture. |
| rect | Screen space position, width and height of the rectangle. |
| texCoord | UV coordinates. |
| color | Image color tint. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Image2D (Texture2D texture, Rect rect, Rect texCoord, Color color, float duration = 0.0f)
Draw a 2D image.
| Parameters |
| texture | Source texture. |
| rect | Screen space position, width and height of the rectangle. |
| texCoord | UV coordinates. |
| color | Image color tint. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.Image2D(Texture2D texture, Rect rect, ScaleMode scaleMode, float aspect, Color color, float duration = 0.0f)
Draw a 2D image.
| Parameters |
| texture | Source texture. |
| rect | Screen space position, width and height of the rectangle. |
| texCoord | UV coordinates. |
| color | Image color tint. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position |
| scale | Text mesh scale. |
| color | Text mesh color. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position |
| scale | Text mesh scale. |
| color | Text mesh color. |
| alignment | How lines of text are aligned (Left, Right, Center) |
| anchor | The pivot position of the text mesh. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float widthScale, float heightScale, Color color, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position. |
| widthScale | Text mesh width scale. |
| heightScale | Text mesh height scale. |
| color | Text mesh color. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float widthScale, float heightScale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position. |
| widthScale | Text mesh width scale. |
| heightScale | Text mesh height scale. |
| color | Text mesh color. |
| alignment | How lines of text are aligned (Left, Right, Center) |
| anchor | The pivot position of the text mesh. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, bool fixedScale, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position. |
| scale | Text mesh scale. |
| color | Text mesh color. |
| fixedScale | Maintain screen space scale. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMeshBillboard(Vector3 position, float scale, Color color, TextAlignment alignment, TextAnchor anchor, bool fixedScale, string label, float duration = 0.0f)
Draw a billboard text mesh. The text mesh will always face the camera.
| Parameters |
| position | Text mesh 3D position. |
| scale | Text mesh scale. |
| color | Text mesh color. |
| alignment | How lines of text are aligned (Left, Right, Center) |
| anchor | The pivot position of the text mesh. |
| fixedScale | Maintain screen space scale. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float scale, Color color, string label, float duration = 0.0f)
Draw a 3D text mesh.
| Parameters |
| position | Text mesh 3D position. |
| rotation | Text mesh rotation. |
| scale | Text mesh scale. |
| color | Text mesh color. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMesh (Vector3 position, Quaternion rotation, float scale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
Draw a 3D text mesh.
| Parameters |
| position | Text mesh 3D position. |
| rotation | Text mesh rotation. |
| scale | Text mesh scale. |
| color | Text mesh color. |
| alignment | How lines of text are aligned (Left, Right, Center) |
| anchor | The pivot position of the text mesh. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float widthScale, float heightScale, Color color, string label, float duration = 0.0f)
Draw a 3D text mesh.
| Parameters |
| position | Text mesh 3D position. |
| rotation | Text mesh rotation. |
| widthScale | Text mesh width scale. |
| heightScale | Text mesh height scale. |
| color | Text mesh color. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMDraw.TextMesh(Vector3 position, Quaternion rotation, float widthScale, float heightScale, Color color, TextAlignment alignment, TextAnchor anchor, string label, float duration = 0.0f)
Draw a 3D text mesh.
| Parameters |
| position | Text mesh 3D position. |
| rotation | Text mesh rotation. |
| widthScale | Text mesh width scale. |
| heightScale | Text mesh height scale. |
| color | Text mesh color. |
| alignment | How lines of text are aligned (Left, Right, Center) |
| anchor | The pivot position of the text mesh. |
| label | Text for the text mesh. |
| duration | Draw duration (in seconds). If this is zero, it will draw for only a single frame. |
Back to top
IMGizmos.SetDefaultZTest()
Set current draw mode to use default Z testing (LEqual). Only affects mesh primitives.
Back to top
IMDrawZTest IMGizmos.ZTest
Set/get current draw mode to use specified Z testing. Only affects mesh primitives.
Back to top
IMGizmos.Line3D (Vector3 from, Vector3 to, Color color)
Draw a 3D line.
| Parameters |
| from | Starting point of the line. |
| to | Ending point of the line. |
| color | Line color. |
Back to top
IMGizmos.Ray3D (Ray ray, float length, Color color)
Draw a 3D ray.
| Parameters |
| ray | Source ray. |
| length | Length of line. |
| color | Ray color. |
Back to top
IMGizmos.Ray3D (Vector3 origin, Vector3 direction, float length, Color color)
Draw a 3D ray.
| Parameters |
| origin | Origin of ray. |
| direction | Direction of ray (assumed to be normalised). |
| length | Length of line. |
| color | Ray color. |
Back to top
IMGizmos.Ray3D (Vector3 origin, Quaternion rotation, float length, Color color)
Draw a 3D ray.
| Parameters |
| origin | Origin of ray. |
| rotation | Ray orientation. |
| length | Ray length. |
| color | Ray color. |
Back to top
IMGizmos.WireQuad3D(Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D quad.
| Parameters |
| center | Quad center position. |
| rotation | Quad rotation. |
| sizeX | Width of quad. |
| sizeY | Height of quad. |
| axis | Orientation axis of quad. |
| color | Quad color. |
Back to top
IMGizmos.Quad3D (Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color color)
Draw a 3D quad.
| Parameters |
| center | Quad center position. |
| rotation | Quad rotation. |
| sizeX | Width of quad. |
| sizeY | Height of quad. |
| axis | Orientation axis of quad. |
| color | Quad color. |
Back to top
IMGizmos.Quad3D(Vector3 center, Quaternion rotation, float sizeX, float sizeY, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D quad.
| Parameters |
| center | Quad center position. |
| rotation | Quad rotation. |
| sizeX | Width of quad. |
| sizeY | Height of quad. |
| axis | Orientation axis of quad. |
| solidColor | Quad fill color. |
| wireframeColor | Quad wireframe color. |
Back to top
IMGizmos.WireBox3D (Vector3 center, Quaternion rotation, Vector3 size, Color color)
Draw a wireframe 3D box.
| Parameters |
| center | Box center position. |
| rotation | Box orientation. |
| size | Box extents. |
| color | Box color. |
Back to top
IMGizmos.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color color)
Draw a 3D box.
| Parameters |
| center | Box center position. |
| rotation | Box orientation. |
| size | Box extents. |
| color | Box color. |
Back to top
IMGizmos.Box3D (Vector3 center, Quaternion rotation, Vector3 size, Color solidColor, Color wireframeColor)
Draw a 3D box.
| Parameters |
| center | Box center position. |
| rotation | Box orientation. |
| size | Box extents. |
| solidColor | Box fill color. |
| wireframeColor | Box wireframe color. |
Back to top
IMGizmos.WirePyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D pyramid.
| Parameters |
| position | Pyramid base position. |
| rotation | Pyramid rotation. |
| height | Pyramid height. |
| width | Pyramid base width. |
| axis | Pyramid reference axis. |
| color | Pyramid color. |
Back to top
IMGizmos.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
Draw a 3D pyramid.
| Parameters |
| position | Pyramid base position. |
| rotation | Pyramid rotation. |
| height | Pyramid height. |
| width | Pyramid base width. |
| axis | Pyramid reference axis. |
| color | Pyramid color. |
Back to top
IMGizmos.Pyramid3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D pyramid.
| Parameters |
| position | Pyramid base position. |
| rotation | Pyramid rotation. |
| height | Pyramid height. |
| width | Pyramid base width. |
| axis | Pyramid reference axis. |
| solidColor | Pyramid fill color. |
| wireframeColor | Pyramid wireframe color. |
Back to top
IMGizmos.WireRhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D rhombus.
| Parameters |
| center | Rhombus center. |
| rotation | Rhombus rotation. |
| length | Rhombus length. |
| width | Rhombus width. |
| axis | Rhombus reference axis. |
| color | |
Back to top
IMGizmos.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color color)
Draw a 3D rhombus.
| Parameters |
| center | Rhombus center. |
| rotation | Rhombus rotation. |
| length | Rhombus length. |
| width | Rhombus width. |
| axis | Rhombus reference axis. |
| color | Rhombus color. |
Back to top
IMGizmos.Rhombus3D(Vector3 center, Quaternion rotation, float length, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D rhombus.
| Parameters |
| center | Rhombus center. |
| rotation | Rhombus rotation. |
| length | Rhombus length. |
| width | Rhombus width. |
| axis | Rhombus reference axis. |
| solidColor | Rhombus fill color. |
| wireframeColor | Rhombus wireframe color. |
Back to top
IMGizmos.Arc3D(Vector3 center, Quaternion rotation, float radius, float sectorAngle, Color color)
Draw a solid filled arc in the Y-axis.
| Parameters |
| center | Arc center. |
| rotation | Arc rotation. |
| radius | Arc radius. |
| sectorAngle | Arc angle of sector, in degrees. |
| color | Arc color. |
Back to top
IMGizmos.Arc3D(Vector3 center, Quaternion rotation, float innerRadius, float outerRadius, float directionAngle, float sectorAngle, Color color)
Draw a solid filled arc in the Y-axis.
| Parameters |
| center | Arc center. |
| rotation | Arc rotation. |
| innerRadius | Arc inner radius. |
| outerRadius | Arc outer radius. |
| directionAngle | Arc angular direction (clockwise), in degrees. |
| sectorAngle | Arc angle of sector, in degrees. |
| color | Arc color. |
Back to top
IMGizmos.WireDisc3D (Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D disc.
| Parameters |
| origin | Disc origin. |
| rotation | Disc orientation. |
| radius | Disc radius. |
| axis | Disc reference axis. |
| color | Disc color. |
Back to top
IMGizmos.Disc3D(Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color color)
Draw a 3D disc.
| Parameters |
| origin | Disc origin. |
| rotation | Disc orientation. |
| radius | Disc radius. |
| axis | Disc reference axis. |
| color | Disc color. |
Back to top
IMGizmos.Disc3D(Vector3 origin, Quaternion rotation, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D disc.
| Parameters |
| origin | Disc origin. |
| rotation | Disc orientation. |
| radius | Disc radius. |
| axis | Disc reference axis. |
| solidColor | Disc fill color. |
| wireframeColor | Disc wireframe color. |
Back to top
IMGizmos.WireSphere3D(Vector3 center, Quaternion rotation, float radius, Color color)
Draw a wireframe 3D sphere.
| Parameters |
| center | Sphere center. |
| rotation | Sphere radius. |
| radius | Sphere radius. |
| color | Sphere color. |
Back to top
IMGizmos.Sphere3D(Vector3 center, Quaternion rotation, float radius, Color color)
Draw a 3D sphere.
| Parameters |
| center | Sphere center. |
| rotation | Sphere radius. |
| radius | Sphere radius. |
| color | Sphere color. |
Back to top
IMGizmos.Sphere3D(Vector3 center, Quaternion rotation, float radius, Color solidColor, Color wireframeColor)
Draw a 3D sphere.
| Parameters |
| center | Sphere center. |
| rotation | Sphere radius. |
| radius | Sphere radius. |
| solidColor | Sphere fill color. |
| wireframeColor | Sphere wireframe color. |
Back to top
IMGizmos.WireEllipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color color)
Draw a wireframe 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| rotation | Ellipsoid rotation. |
| extents | Ellipsoid size. |
| color | Ellipsoid color. |
Back to top
IMGizmos.Ellipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color color)
Draw a 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| rotation | Ellipsoid rotation. |
| extents | Ellipsoid size. |
| color | Ellipsoid color. |
Back to top
IMGizmos.Ellipsoid3D(Vector3 center, Quaternion rotation, Vector3 extents, Color solidColor, Color wireframeColor)
Draw a 3D ellipsoid.
| Parameters |
| center | Ellipsoid center. |
| rotation | Ellipsoid rotation. |
| extents | Ellipsoid size. |
| solidColor | Ellipsoid fill color. |
| wireframeColor | Ellipsoid wireframe color. |
Back to top
IMGizmos.WireCone3D(Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D cone.
| Parameters |
| position | Cone position (origin is located at the base). |
| rotation | Cone rotation. |
| height | Cone height. |
| width | Cone base width. |
| axis | Cone reference axis. |
| color | Cone color. |
Back to top
IMGizmos.Cone3D (Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color color)
Draw a 3D cone.
| Parameters |
| position | Cone position (origin is located at the base). |
| rotation | Cone rotation. |
| height | Cone height. |
| width | Cone base width. |
| axis | Cone reference axis. |
| color | Cone color. |
Back to top
IMGizmos.Cone3D (Vector3 position, Quaternion rotation, float height, float width, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D cone.
| Parameters |
| position | Cone position (origin is located at the base). |
| rotation | Cone rotation. |
| height | Cone height. |
| width | Cone base width. |
| axis | Cone reference axis. |
| solidColor | Cone fill color. |
| wireframeColor | Cone wireframe color. |
Back to top
IMGizmos.WireCapsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D capsule.
| Parameters |
| center | Capsule center. |
| rotation | Capsule rotation. |
| height | Capsule height. |
| radius | Capsule radius. |
| axis | Capsule reference axis. |
| color | Capsule color. |
Back to top
IMGizmos.Capsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
Draw a 3D capsule.
| Parameters |
| center | Capsule center. |
| rotation | Capsule rotation. |
| height | Capsule height. |
| radius | Capsule radius. |
| axis | Capsule reference axis. |
| color | Capsule color. |
Back to top
IMGizmos.Capsule3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D capsule.
| Parameters |
| center | Capsule center. |
| rotation | Capsule rotation. |
| height | Capsule height. |
| radius | Capsule radius. |
| axis | Capsule reference axis. |
| solidColor | Capsule fill color. |
| wireframeColor | Capsule wireframe color. |
Back to top
IMGizmos.WireCylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
Draw a wireframe 3D cylinder.
| Parameters |
| center | Cylinder center. |
| rotation | Cylinder rotation. |
| height | Cylinder height. |
| radius | Cylinder radius. |
| axis | Cylinder reference axis. |
| color | Cylinder color. |
Back to top
IMGizmos.Cylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color color)
Draw a 3D cylinder.
| Parameters |
| center | Cylinder center. |
| rotation | Cylinder rotation. |
| height | Cylinder height. |
| radius | Cylinder radius. |
| axis | Cylinder reference axis. |
| color | Cylinder color. |
Back to top
IMGizmos.Cylinder3D(Vector3 center, Quaternion rotation, float height, float radius, GizmoDrawAxis axis, Color solidColor, Color wireframeColor)
Draw a 3D cylinder.
| Parameters |
| center | Cylinder center. |
| rotation | Cylinder rotation. |
| height | Cylinder height. |
| radius | Cylinder radius. |
| axis | Cylinder reference axis. |
| solidColor | Cylinder fill color. |
| wireframeColor | Cylinder wireframe color. |
Back to top
IMGizmos.WireMesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color)
Draw a wireframe mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| color | Mesh color. |
Back to top
IMGizmos.WireMesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color)
Draw a wireframe mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| scale | Mesh scale. |
| color | Mesh color. |
Back to top
IMGizmos.WireMesh(Mesh mesh, Transform tf, Color color)
Draw a wireframe mesh.
| Parameters |
| mesh | Source mesh. |
| tf | Mesh transform. |
| color | Mesh color. |
Back to top
IMGizmos.Mesh (Mesh mesh, Vector3 position, Quaternion rotation, Color color)
Draw a mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| color | Mesh color. |
Back to top
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color color)
Draw a mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| scale | Mesh scale. |
| color | Mesh color. |
Back to top
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Color solidColor, Color wireframeColor)
Draw a mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| solidColor | Mesh fill color. |
| wireframeColor | Mesh wireframe color. |
Back to top
IMGizmos.Mesh(Mesh mesh, Vector3 position, Quaternion rotation, Vector3 scale, Color solidColor, Color wireframeColor)
Draw a mesh.
| Parameters |
| mesh | Source mesh. |
| position | Mesh position. |
| rotation | Mesh rotation. |
| scale | Mesh scale. |
| solidColor | Mesh fill color. |
| wireframeColor | Mesh wireframe color. |
Back to top
IMGizmos.Axis3D(Vector3 origin, Quaternion rotation, float length, float alpha)
Draw a 3-dimensional axis (X-axis=red, Y-axis=green, Z-axis=blue).
| Parameters |
| origin | Axis origin. |
| rotation | Axis rotation. |
| length | Length of axis lines. |
| alpha | Axis transparency. |
Back to top
IMGizmos.Axis3D(Vector3 origin, Quaternion rotation, Vector3 length, float alpha)
Draw a 3-dimensional axis (X-axis=red, Y-axis=green, Z-axis=blue).
| Parameters |
| origin | Axis origin. |
| rotation | Axis rotation. |
| length | Length of each axis line. |
| alpha | Axis transparency. |
Back to top
IMGizmos.AxisGridPoint3D (Vector3 origin, Quaternion rotation, Vector3 halfLength, float alpha)
Draw a 3-dimensional axis grid point (X-axis=red, Y-axis=green, Z-axis=blue).
| Parameters |
| origin | Axis origin. |
| rotation | Axis rotation. |
| halfLength | Half length of each axis line. |
| alpha | Axis transparency. |
Back to top
IMGizmos.GridPoint3D (Vector3 origin, Quaternion rotation, float extents, Color color)
Draw a 3D grid point.
| Parameters |
| origin | Grid point origin. |
| rotation | Grid point orientation. |
| extents | Grid point extents. |
| color | Grid point colour. |
Back to top
IMGizmos.GridPoint3D (Vector3 origin, Quaternion rotation, Vector3 extents, Color color)
Draw a 3D grid point.
| Parameters |
| origin | Grid point origin. |
| rotation | Grid point orientation. |
| extents | Grid point XYZ extents. |
| color | Grid point colour. |
Back to top
IMGizmos.Grid3D (Vector3 origin, Quaternion rotation, float extentX, float extentY, int cellsX, int cellsY, GizmoDrawAxis axis, Color color)
Draw a 3D grid in a specified plane.
| Parameters |
| origin | Grid origin. |
| rotation | Grid orientation. |
| extentX | Grid width. |
| extentY | Grid height. |
| cellsX | Number of cells along the width. |
| cellsY | Number of cells along the height. |
| axis | The reference plane for the grid. |
| color | Grid color. |
Back to top
IMGizmos.Bounds (Bounds bounds, Color color)
Draw 3D bounds (an axis aligned box).
| Parameters |
| bounds | Bounds that specifies a position and extents. |
| color | Bounds color. |
Back to top
IMGizmos.Bounds (Renderer renderer, Color color)
Draw the 3D bounds for a renderer (note: only draws bounds if renderer is visible).
| Parameters |
| renderer | Renderer whose bounds will be drawn. |
| color | Bounds color. |
Back to top
IMGizmos.Label(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, int fontSize = 12)
Draw a label in screen space.
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| fontSize | Label font size. |
Back to top
IMGizmos.LabelShadowed(float x, float y, Color color, LabelPivot pivot, LabelAlignment alignment, string label, int fontSize = 12)
Draw a label (with drop shadow) in screen space.
| Parameters |
| x | Screen X position. |
| y | Screen Y position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| fontSize | Label font size. |
Back to top
IMGizmos.Label (Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
Draw a label in 3D space.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| maxDist | Max draw distance from viewer. |
| fontSize | Label font size. |
Back to top
IMGizmos.LabelShadowed(Vector3 position, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
Draw a label (with drop shadow) in 3D space.
| Parameters |
| position | Label 3D position. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| maxDist | Max draw distance from viewer. |
| fontSize | Label font size. |
Back to top
IMGizmos.Label(Vector3 position, float offsetX, float offsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
Draw a label in 3D space.
| Parameters |
| position | Label 3D position. |
| offsetX | Screen space X position offset. |
| offsetY | Screen space Y position offset. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| maxDist | Max draw distance from viewer. |
| fontSize | Label font size. |
Back to top
IMGizmos.LabelShadowed (Vector3 position, float offsetX, float offsetY, Color color, LabelPivot pivot, LabelAlignment alignment, string label, float maxDist, int fontSize = 12)
Draw a label (with drop shadow) in 3D space.
| Parameters |
| position | Label 3D position. |
| offsetX | Screen space X position offset. |
| offsetY | Screen space Y position offset. |
| color | Label color. |
| pivot | Label rectangle pivot. |
| alignment | Label text alignment. |
| label | Label text. |
| maxDist | Max draw distance from viewer. |
| fontSize | Label font size. |
Back to top
IMGizmos.Image (Rect rect, Color color, Texture2D texture)
Draw a texture in screen space.
| Parameters |
| rect | Screen position, width and height. |
| color | Texture color. |
| texture | Source texture. |
Back to top