Beispiel #1
0
 public static void DrawSolidTexture(Rect rect, Color color, BorderWidth borderWidth, BorderRadius borderRadius)
 {
     DrawTexture(rect, solidWhite, ScaleMode.StretchToFill, defaultTextureAspect, color, defaultAlphaBlend, borderWidth, borderRadius);
 }
Beispiel #2
0
 public static void DrawTexture(Rect rect, Texture texture, ScaleMode scaleMode, float textureAspect, Color color, bool alphaBlend, BorderWidth borderWidth, BorderRadius borderRadius)
 {
     GUI.DrawTexture(rect, texture, scaleMode, alphaBlend, textureAspect, color, new Vector4(borderWidth.left, borderWidth.top, borderWidth.right, borderWidth.bottom), new Vector4(borderRadius.topLeft, borderRadius.topRight, borderRadius.bottomRight, borderRadius.bottomLeft));
 }
Beispiel #3
0
 public static void DrawSolidTexture(Rect rect, Color color, BorderWidth borderWidth)
 {
     DrawSolidTexture(rect, color, borderWidth, new BorderRadius(0));
 }