ToolSet
命名空间:FairyGUI.Utils
源码:Assets/Scripts/Utils/ToolSet.cs (行 8)
public static class ToolSet
方法
CharToHex(char)
public static int CharToHex(char c);
| 参数 | 类型 | 说明 |
|---|---|---|
c | char |
源码:Utils/ToolSet.cs (行 48)
ColorFromRGB(int)
public static Color ColorFromRGB(int value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | int |
源码:Utils/ToolSet.cs (行 38)
ColorFromRGBA(uint)
public static Color ColorFromRGBA(uint value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | uint |
源码:Utils/ToolSet.cs (行 43)
ConvertFromHtmlColor(string)
public static Color ConvertFromHtmlColor(string str);
| 参数 | 类型 | 说明 |
|---|---|---|
str | string |
源码:Utils/ToolSet.cs (行 10)
Intersection(Rect, Rect)
public static Rect Intersection(ref Rect rect1, ref Rect rect2);
| 参数 | 类型 | 说明 |
|---|---|---|
rect1 | Rect | |
rect2 | Rect |
源码:Utils/ToolSet.cs (行 60)
RotateUV(Vector2[], Rect)
public static void RotateUV(Vector2[] uv, ref Rect baseUVRect);
| 参数 | 类型 | 说明 |
|---|---|---|
uv | Vector2[] | |
baseUVRect | Rect |
源码:Utils/ToolSet.cs (行 113)
SkewMatrix(Matrix4x4, float, float)
public static void SkewMatrix(ref Matrix4x4 matrix, float skewX, float skewY);
| 参数 | 类型 | 说明 |
|---|---|---|
matrix | Matrix4x4 | |
skewX | float | |
skewY | float |
源码:Utils/ToolSet.cs (行 89)
Union(Rect, Rect)
public static Rect Union(ref Rect rect1, ref Rect rect2);
| 参数 | 类型 | 说明 |
|---|---|---|
rect1 | Rect | |
rect2 | Rect |
源码:Utils/ToolSet.cs (行 76)