Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xjine/unity_xgui

Utilities to make a lot of IMGUI(OnGUI). It is easy & fast.
https://github.com/xjine/unity_xgui

assets unity

Last synced: 13 days ago
JSON representation

Utilities to make a lot of IMGUI(OnGUI). It is easy & fast.

Awesome Lists containing this project

README

        

# 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.

```csharp
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.

```csharp
FlexGUI _boolGUI = new ("Bool" );
FlexGUI _stringGUI = new ("String") { Width = 250 };
FlexGUI _intGUI = new ("Int" ) { MinValue = 0, MaxValue = 100 };
```