Class Gizmos
Assembly: UnityEngine.dll
Syntax
public sealed class Gizmos
Properties
color
Declaration
public static Color color { get; set; }
Property Value
matrix
Declaration
public static Matrix4x4 matrix { get; set; }
Property Value
Methods
DrawCube(Vector3, Vector3)
Declaration
public static void DrawCube(Vector3 center, Vector3 size)
Parameters
DrawFrustum(Vector3, Single, Single, Single, Single)
Declaration
public static void DrawFrustum(Vector3 center, float fov, float maxRange, float minRange, float aspect)
Parameters
|
Improve this Doc
View Source
DrawGUITexture(Rect, Texture)
Declaration
[ExcludeFromDocs]
public static void DrawGUITexture(Rect screenRect, Texture texture)
Parameters
|
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
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
|
Improve this Doc
View Source
DrawGUITexture(Rect, Texture, Material)
Declaration
public static void DrawGUITexture(Rect screenRect, Texture texture, [DefaultValue("null")] Material mat)
Parameters
|
Improve this Doc
View Source
DrawIcon(Vector3, String)
Declaration
[ExcludeFromDocs]
public static void DrawIcon(Vector3 center, string name)
Parameters
DrawIcon(Vector3, String, Boolean)
Declaration
public static void DrawIcon(Vector3 center, string name, [DefaultValue("true")] bool allowScaling)
Parameters
DrawLine(Vector3, Vector3)
Declaration
public static void DrawLine(Vector3 from, Vector3 to)
Parameters
|
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
|
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
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
|
Improve this Doc
View Source
DrawMesh(Mesh, Vector3)
Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position)
Parameters
|
Improve this Doc
View Source
DrawMesh(Mesh, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static void DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation)
Parameters
|
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
|
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
DrawSphere(Vector3, Single)
Declaration
public static void DrawSphere(Vector3 center, float radius)
Parameters
DrawWireCube(Vector3, Vector3)
Declaration
public static void DrawWireCube(Vector3 center, Vector3 size)
Parameters
|
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
|
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
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
|
Improve this Doc
View Source
DrawWireMesh(Mesh, Vector3)
Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, Vector3 position)
Parameters
|
Improve this Doc
View Source
DrawWireMesh(Mesh, Vector3, Quaternion)
Declaration
[ExcludeFromDocs]
public static void DrawWireMesh(Mesh mesh, Vector3 position, Quaternion rotation)
Parameters
|
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
DrawWireSphere(Vector3, Single)
Declaration
public static void DrawWireSphere(Vector3 center, float radius)
Parameters
Extension Methods