Show / Hide Table of Contents

Class Gizmos

Inheritance
Object
Gizmos
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Gizmos

Properties

color

Declaration
public static Color color { get; set; }
Property Value
Type Description
Color

matrix

Declaration
public static Matrix4x4 matrix { get; set; }
Property Value
Type Description
Matrix4x4

Methods

DrawCube(Vector3, Vector3)

Declaration
public static void DrawCube(Vector3 center, Vector3 size)
Parameters
Type Name Description
Vector3 center
Vector3 size

DrawFrustum(Vector3, Single, Single, Single, Single)

Declaration
public static void DrawFrustum(Vector3 center, float fov, float maxRange, float minRange, float aspect)
Parameters
Type Name Description
Vector3 center
Single fov
Single maxRange
Single minRange
Single aspect
| Improve this Doc View Source

DrawGUITexture(Rect, Texture)

Declaration
[ExcludeFromDocs]
public static void DrawGUITexture(Rect screenRect, Texture texture)
Parameters
Type Name Description
Rect screenRect
Texture texture
| Improve this Doc View Source

DrawGUITexture(Rect, Texture, Int32, Int32, Int32, Int32)

Declaration
[ExcludeFromDocs]
public static void DrawGUITexture(Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder)
Parameters
Type Name Description
Rect screenRect
Texture texture
Int32 leftBorder
Int32 rightBorder
Int32 topBorder
Int32 bottomBorder

DrawGUITexture(Rect, Texture, Int32, Int32, Int32, Int32, Material)

Declaration
public static void DrawGUITexture(Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, [DefaultValue("null")] Material mat)
Parameters
Type Name Description
Rect screenRect
Texture texture
Int32 leftBorder
Int32 rightBorder
Int32 topBorder
Int32 bottomBorder
Material mat
| Improve this Doc View Source

DrawGUITexture(Rect, Texture, Material)

Declaration
public static void DrawGUITexture(Rect screenRect, Texture texture, [DefaultValue("null")] Material mat)
Parameters
Type Name Description
Rect screenRect
Texture texture
Material mat
| Improve this Doc View Source

DrawIcon(Vector3, String)

Declaration
[ExcludeFromDocs]
public static void DrawIcon(Vector3 center, string name)
Parameters
Type Name Description
Vector3 center
String name

DrawIcon(Vector3, String, Boolean)

Declaration
public static void DrawIcon(Vector3 center, string name, [DefaultValue("true")] bool allowScaling)
Parameters
Type Name Description
Vector3 center
String name
Boolean allowScaling

DrawLine(Vector3, Vector3)

Declaration
public static void DrawLine(Vector3 from, Vector3 to)
Parameters
Type Name Description
Vector3 from
Vector3 to
| Improve this Doc View Source

DrawMesh(Mesh)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh)
Parameters
Type Name Description
Mesh mesh
| Improve this Doc View Source

DrawMesh(Mesh, Int32)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, int submeshIndex)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
| Improve this Doc View Source

DrawMesh(Mesh, Int32, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, int submeshIndex, Vector3 position)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
| Improve this Doc View Source

DrawMesh(Mesh, Int32, Vector3, Quaternion)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, int submeshIndex, Vector3 position, Quaternion rotation)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
Quaternion rotation

DrawMesh(Mesh, Int32, Vector3, Quaternion, Vector3)

Declaration
public static void DrawMesh(Mesh mesh, int submeshIndex, [DefaultValue("Vector3.zero")] Vector3 position, [DefaultValue("Quaternion.identity")] Quaternion rotation, [DefaultValue("Vector3.one")] Vector3 scale)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
Quaternion rotation
Vector3 scale
| Improve this Doc View Source

DrawMesh(Mesh, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position)
Parameters
Type Name Description
Mesh mesh
Vector3 position
| Improve this Doc View Source

DrawMesh(Mesh, Vector3, Quaternion)

Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation)
Parameters
Type Name Description
Mesh mesh
Vector3 position
Quaternion rotation
| Improve this Doc View Source

DrawMesh(Mesh, Vector3, Quaternion, Vector3)

Declaration
public static void DrawMesh(Mesh mesh, [DefaultValue("Vector3.zero")] Vector3 position, [DefaultValue("Quaternion.identity")] Quaternion rotation, [DefaultValue("Vector3.one")] Vector3 scale)
Parameters
Type Name Description
Mesh mesh
Vector3 position
Quaternion rotation
Vector3 scale
| Improve this Doc View Source

DrawRay(Ray)

Declaration
public static void DrawRay(Ray r)
Parameters
Type Name Description
Ray r
| Improve this Doc View Source

DrawRay(Vector3, Vector3)

Declaration
public static void DrawRay(Vector3 from, Vector3 direction)
Parameters
Type Name Description
Vector3 from
Vector3 direction

DrawSphere(Vector3, Single)

Declaration
public static void DrawSphere(Vector3 center, float radius)
Parameters
Type Name Description
Vector3 center
Single radius

DrawWireCube(Vector3, Vector3)

Declaration
public static void DrawWireCube(Vector3 center, Vector3 size)
Parameters
Type Name Description
Vector3 center
Vector3 size
| Improve this Doc View Source

DrawWireMesh(Mesh)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh)
Parameters
Type Name Description
Mesh mesh
| Improve this Doc View Source

DrawWireMesh(Mesh, Int32)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, int submeshIndex)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
| Improve this Doc View Source

DrawWireMesh(Mesh, Int32, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, int submeshIndex, Vector3 position)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
| Improve this Doc View Source

DrawWireMesh(Mesh, Int32, Vector3, Quaternion)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, int submeshIndex, Vector3 position, Quaternion rotation)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
Quaternion rotation

DrawWireMesh(Mesh, Int32, Vector3, Quaternion, Vector3)

Declaration
public static void DrawWireMesh(Mesh mesh, int submeshIndex, [DefaultValue("Vector3.zero")] Vector3 position, [DefaultValue("Quaternion.identity")] Quaternion rotation, [DefaultValue("Vector3.one")] Vector3 scale)
Parameters
Type Name Description
Mesh mesh
Int32 submeshIndex
Vector3 position
Quaternion rotation
Vector3 scale
| Improve this Doc View Source

DrawWireMesh(Mesh, Vector3)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, Vector3 position)
Parameters
Type Name Description
Mesh mesh
Vector3 position
| Improve this Doc View Source

DrawWireMesh(Mesh, Vector3, Quaternion)

Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, Vector3 position, Quaternion rotation)
Parameters
Type Name Description
Mesh mesh
Vector3 position
Quaternion rotation
| Improve this Doc View Source

DrawWireMesh(Mesh, Vector3, Quaternion, Vector3)

Declaration
public static void DrawWireMesh(Mesh mesh, [DefaultValue("Vector3.zero")] Vector3 position, [DefaultValue("Quaternion.identity")] Quaternion rotation, [DefaultValue("Vector3.one")] Vector3 scale)
Parameters
Type Name Description
Mesh mesh
Vector3 position
Quaternion rotation
Vector3 scale

DrawWireSphere(Vector3, Single)

Declaration
public static void DrawWireSphere(Vector3 center, float radius)
Parameters
Type Name Description
Vector3 center
Single radius

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX