public static void DrawTexture (Rect screenRect, Texture texture, Material mat= null, int pass= -1);
public static void DrawTexture (Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat= null, int pass= -1);
public static void DrawTexture (Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Material mat= null, int pass= -1);
public static void DrawTexture (Rect screenRect, Texture texture, Rect sourceRect, int leftBorder, int rightBorder, int topBorder, int bottomBorder, Color color, Material mat= null, int pass= -1);

파라미터

screenRectRectangle on the screen to use for the texture. In pixel coordinates with (0,0) in the upper-left corner.
texture Texture to draw.
sourceRectRegion of the texture to use. In normalized coordinates with (0,0) in the bottom-left corner.
leftBorderNumber of pixels from the left that are not affected by scale.
rightBorderNumber of pixels from the right that are not affected by scale.
topBorderNumber of pixels from the top that are not affected by scale.
bottomBorderNumber of pixels from the bottom that are not affected by scale.
color Color that modulates the output. The neutral value is (0.5, 0.5, 0.5, 0.5). Set as vertex color for the shader.
matCustom Material that can be used to draw the texture. If null is passed, a default material with the Internal-GUITexture.shader is used.
passIf -1 (default), draws all passes in the material. Otherwise, draws given pass only.

설명

Draw a texture in screen coordinates.

If you want to draw a texture from inside of OnGUI code, you should only do that from EventType.Repaint events. It's probably better to use GUI.DrawTexture for GUI code.

no example available in C#