ToolSet
Namespace:FairyGUI.Utils
Source:Assets/Scripts/Utils/ToolSet.cs (line 8)
public static class ToolSet
Methods
CharToHex(char)
public static int CharToHex(char c);
| Parameter | Type | Description |
|---|---|---|
c | char |
Source:Utils/ToolSet.cs (line 48)
ColorFromRGB(int)
public static Color ColorFromRGB(int value);
| Parameter | Type | Description |
|---|---|---|
value | int |
Source:Utils/ToolSet.cs (line 38)
ColorFromRGBA(uint)
public static Color ColorFromRGBA(uint value);
| Parameter | Type | Description |
|---|---|---|
value | uint |
Source:Utils/ToolSet.cs (line 43)
ConvertFromHtmlColor(string)
public static Color ConvertFromHtmlColor(string str);
| Parameter | Type | Description |
|---|---|---|
str | string |
Source:Utils/ToolSet.cs (line 10)
Intersection(Rect, Rect)
public static Rect Intersection(ref Rect rect1, ref Rect rect2);
| Parameter | Type | Description |
|---|---|---|
rect1 | Rect | |
rect2 | Rect |
Source:Utils/ToolSet.cs (line 60)
RotateUV(Vector2[], Rect)
public static void RotateUV(Vector2[] uv, ref Rect baseUVRect);
| Parameter | Type | Description |
|---|---|---|
uv | Vector2[] | |
baseUVRect | Rect |
Source:Utils/ToolSet.cs (line 113)
SkewMatrix(Matrix4x4, float, float)
public static void SkewMatrix(ref Matrix4x4 matrix, float skewX, float skewY);
| Parameter | Type | Description |
|---|---|---|
matrix | Matrix4x4 | |
skewX | float | |
skewY | float |
Source:Utils/ToolSet.cs (line 89)
Union(Rect, Rect)
public static Rect Union(ref Rect rect1, ref Rect rect2);
| Parameter | Type | Description |
|---|---|---|
rect1 | Rect | |
rect2 | Rect |
Source:Utils/ToolSet.cs (line 76)