Advertisement
Fearsoulfire

ddd

Sep 2nd, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. GUI.DrawTexture
  2. static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode = ScaleMode.StretchToFill, bool alphaBlend = true, float imageAspect = 0);
  3. Parameters
  4.  
  5. position Rectangle on the screen to draw the texture within.
  6. image Texture to display.
  7. scaleMode How to scale the image when the aspect ratio of it doesn't fit the aspect ratio to be drawn within.
  8. alphaBlend Whether to apply alpha blending when drawing the image (enabled by default).
  9. imageAspect Aspect ratio to use for the source image. If 0 (the default), the aspect ratio from the image is used. Pass in w/h for the desired aspect ratio. This allows the aspect ratio of the source image to be adjusted without changing the pixel width and height.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement