screenRect | The size and position of the texture on the "screen" defined by the XY plane. |
texture | The texture to be displayed. |
mat | An optional material to apply the texture. |
leftBorder | Inset from the rectangle's left edge. |
rightBorder | Inset from the rectangle's right edge. |
topBorder | Inset from the rectangle's top edge. |
bottomBorder | Inset from the rectangle's bottom edge. |
Draw a texture in the scene.
var myTexture : Texture; function OnDrawGizmos () { Gizmos.DrawGUITexture(Rect(10, 10, 20, 20), myTexture); }