C# Класс UnityEngine.Gizmos

Gizmos are used to give visual debugging or setup aids in the scene view.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DrawCube ( Vector3 center, Vector3 size ) : void
DrawFrustum ( Vector3 center, float fov, float maxRange, float minRange, float aspect ) : void
DrawGUITexture ( Rect screenRect, Texture texture ) : void
DrawGUITexture ( Rect screenRect, Texture texture, Material mat ) : void
DrawGUITexture ( Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder ) : void
DrawGUITexture ( Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat ) : void
DrawIcon ( Vector3 center, string name ) : void
DrawIcon ( Vector3 center, string name, bool allowScaling ) : void
DrawLine ( Vector3 from, Vector3 to ) : void
DrawRay ( Ray r ) : void
DrawRay ( Vector3 from, Vector3 direction ) : void
DrawSphere ( Vector3 center, float radius ) : void
DrawWireCube ( Vector3 center, Vector3 size ) : void
DrawWireSphere ( Vector3 center, float radius ) : void

Описание методов

DrawCube() публичный статический Метод

public static DrawCube ( Vector3 center, Vector3 size ) : void
center Vector3
size Vector3
Результат void

DrawFrustum() публичный статический Метод

public static DrawFrustum ( Vector3 center, float fov, float maxRange, float minRange, float aspect ) : void
center Vector3
fov float
maxRange float
minRange float
aspect float
Результат void

DrawGUITexture() публичный статический Метод

public static DrawGUITexture ( Rect screenRect, Texture texture ) : void
screenRect Rect
texture Texture
Результат void

DrawGUITexture() публичный статический Метод

public static DrawGUITexture ( Rect screenRect, Texture texture, Material mat ) : void
screenRect Rect
texture Texture
mat Material
Результат void

DrawGUITexture() публичный статический Метод

public static DrawGUITexture ( Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder ) : void
screenRect Rect
texture Texture
leftBorder int
rightBorder int
topBorder int
bottomBorder int
Результат void

DrawGUITexture() публичный статический Метод

public static DrawGUITexture ( Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat ) : void
screenRect Rect
texture Texture
leftBorder int
rightBorder int
topBorder int
bottomBorder int
mat Material
Результат void

DrawIcon() публичный статический Метод

public static DrawIcon ( Vector3 center, string name ) : void
center Vector3
name string
Результат void

DrawIcon() публичный статический Метод

public static DrawIcon ( Vector3 center, string name, bool allowScaling ) : void
center Vector3
name string
allowScaling bool
Результат void

DrawLine() публичный статический Метод

public static DrawLine ( Vector3 from, Vector3 to ) : void
from Vector3
to Vector3
Результат void

DrawRay() публичный статический Метод

public static DrawRay ( Ray r ) : void
r Ray
Результат void

DrawRay() публичный статический Метод

public static DrawRay ( Vector3 from, Vector3 direction ) : void
from Vector3
direction Vector3
Результат void

DrawSphere() публичный статический Метод

public static DrawSphere ( Vector3 center, float radius ) : void
center Vector3
radius float
Результат void

DrawWireCube() публичный статический Метод

public static DrawWireCube ( Vector3 center, Vector3 size ) : void
center Vector3
size Vector3
Результат void

DrawWireSphere() публичный статический Метод

public static DrawWireSphere ( Vector3 center, float radius ) : void
center Vector3
radius float
Результат void