|
static Texture2D | LoadTexture (int width, Color32[] pixels) |
| Load a UnityEngine.Texture2D with color pixels for editor usage. More...
|
|
static Texture2D | LoadTexture (string[] pixels, Dictionary< char, Color32 > colors, Color32 other) |
| Trick to load a UnityEngine.Texture2D by parsing pixel string array. More...
|
|
static Texture2D | LoadIcon (string[] pixels, byte pro=196, byte free=60) |
| Trick to load icon UnityEngine.Texture2D by parsing pixel string array. More...
|
|
static Texture2D | LoadCursor (string[] pixels) |
| Trick to load cursor UnityEngine.Texture2D by parsing pixel string array. More...
|
|
|
static readonly Texture2D | splitterPixel |
| The splitter pixel texture, middle gray, 1 x 1. More...
|
|
static readonly Texture2D | backgroundPixel |
| The background pixel texture, dark gray, 1 x 1. More...
|
|
static readonly GUIStyle | statusBar |
| The status bar style. More...
|
|
static readonly GUIStyle | popupBorder |
| The popup window border style. More...
|
|
static readonly Texture2D | editIcon |
| The icon represents to edit, a pencil, 12 x 12. More...
|
|
static readonly Texture2D | copyIcon |
| The icon represents to copy, overlapping notes, 12 x 12. More...
|
|
static readonly Texture2D | removeIcon |
| The icon represents to remove, a moving out arrow, 12 x 12. More...
|
|
static readonly Texture2D | deleteIcon |
| The icon represents to delete, a trash can, 12 x 12. More...
|
|
static readonly Texture2D | aimIcon |
| The icon represents to aim, a front sight, 12 x 12. More...
|
|
static readonly Texture2D | fingerIcon |
| The icon represents a finger, 12 x 12. More...
|
|
static readonly Texture2D | hierarchyIcon |
| The icon represents a hierarchy, indent level lines, 12 x 12. More...
|
|
static readonly Texture2D | clipboardIcon |
| The icon represents a clipboard, 12 x 12. More...
|
|
static readonly Texture2D | bookmarkIcon |
| The icon represents a bookmark, 12 x 12. More...
|
|
static readonly Texture2D | questionIcon |
| The icon represents the Super Mario question mark, 12 x 12. More...
|
|
static readonly Texture2D | linkIcon |
| The icon represents to link, a connected chain, 9 x 9. More...
|
|
static readonly Texture2D | unlinkIcon |
| The icon represents to unlink, a broken chain, 9 x 9. More...
|
|
static readonly Texture2D | stopCursor |
| The aux cursor represents a stop mark, 20 x 20. More...
|
|
static readonly Texture2D | copyCursor |
| The aux cursor with a plus symbol, 19 x 15. More...
|
|
static readonly Texture2D | linkCursor |
| The aux cursor with an arrow, 19 x 15. More...
|
|
static readonly Texture2D | moveCursor |
| The aux cursor represents a dotted frame, 13 x 9. More...
|
|
Extend editor GUI style, and include some premade icons or styles.
3
static Texture2D LoadIcon |
( |
string[] |
pixels, |
|
|
byte |
pro = 196 , |
|
|
byte |
free = 60 |
|
) |
| |
|
static |
Trick to load icon UnityEngine.Texture2D
by parsing pixel string
array.
Array length as icon height, element string
length as width. Any space char as transparent, others color light if pro skin, otherwise dark. Return the texture with the same pixels created by this if exists, otherwise create new one.
- Parameters
-
pixels | Pixel bits. |
pro | Grayscale for pro skin. |
free | Grayscale for free skin. |
- Returns
- The icon
UnityEngine.Texture2D
.
static Texture2D LoadCursor |
( |
string[] |
pixels | ) |
|
|
static |
Trick to load cursor UnityEngine.Texture2D
by parsing pixel string
array.
Array length as cursor height, element string
length as width. Any '1' char as white, '0' as black, otherwise transparent. Return the texture with the same pixels created by this if exists, otherwise create new one.
- Parameters
-
- Returns
- The cursor
UnityEngine.Texture2D
.