Unity_XGUI
Unity_XGUI copied to clipboard
Utilities to make a lot of IMGUI(OnGUI). It is easy & fast.
Unity_XGUI
Utilities to make a lot of IMGUI(OnGUI). It is easy & fast.
Importing
You can use Package Manager or import it directly.
https://github.com/XJINE/Unity_XGUI.git?path=Assets/Packages/XGUI
Dependencies
This project use following resources.
- https://github.com/XJINE/Unity_ExpressionParser
Various GUI
XGUI includes following type GUI.
| int | float | string | bool | Enum |
| Vector2 | Vector3 | Vector4 | Vector2Int | Vector3Int |
| Color | Matrix4x4 | IList<T> (List<T>, T[]) |
Various Panel
FlexWindow automatically scale its width and height when needed.
ScrollPanel shows scroll handle when needed.
FoldoutPanel & TabPanel hide or group some GUIs.
FlexGUI
FlexGUI provides common feels to make GUI.
Usually, it is needed to define corresponding GUI.
BoolGUI _boolGUI = new ("Bool" );
StringGUI _stringGUI = new ("String") { Width = 250 };
IntGUI _intGUI = new ("Int" ) { MinValue = 0, MaxValue = 100 };
FlexGUI needs only a Type of the value.
FlexGUI<bool> _boolGUI = new ("Bool" );
FlexGUI<string> _stringGUI = new ("String") { Width = 250 };
FlexGUI<int> _intGUI = new ("Int" ) { MinValue = 0, MaxValue = 100 };