IMGUI extensions for Rapid prototyping/development
npm install ga.fuquna.rapidguiUnity IMGUI extensions for Rapid prototyping/development.
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
```
openupm add ga.fuquna.rapidgui
Add following lines to the dependencies section of the Packages/manifest.json.``
"ga.fuquna.rapidgui": "https://github.com/fuqunaga/RapidGUI.git"
Download a .unitypackage file from the Release page.
`csharp`
value = RGUI.Field(value, label);
- Display standard GUI according to type of value
- Right-drag label to edit numbers
- Color picker
- Array/List has a right-click menu like inspector
- Supports custom class
CustomClass
`csharp
public class CustomClass
{
public int publicField;
[SerializeField]
protected int serializeField;
[NonSerialized]
public int nonSerializedField;
[Range(0f, 10f)]
public float rangeVal;
public string longNameFieldWillBeMultiLine;
}
``csharp`
customClass = RGUI.Field(customClass, nameof(customClass));
csharp
value = RGUI.Slider(value, min, max, label);
`
- Display slider GUI according to type of numbers
$3
!MinMaxSlider
`csharp
RGUI.MinMaxSlider(minMaxVal, minMaxRange, label);
RGUI.MinMaxSlider(ref floatMin, ref floatMax, rangeMin, rangeMax, label);
`
- Display min max slider GUI according to type of numbers
- RapidGUI defines some basic MinMax type(MinMaxInt,MinMaxFloat,MinMaxVector2...)
- You can also create your own MinMax type by inheriting MinMax
$3
!fold
`csharp
selectionPopupIdx = RGUI.SelectionPopup(selectionPopupIdx, new[] { "One", "Two", "Three" });
selectionPopupStr = RGUI.SelectionPopup(selectionPopupStr, new[] { "One", "Two", "Three" });
`$3
!fold`csharp
// Initialize
fold = new Fold("Fold");
fold.Add(() => GUILayout.Label("Added function"));
``csharp
fold.DoGUI();
`$3
!windowLauncher
`csharp
// Initialize
launcher = new WindowLauncher("WindowLauncher");
launcher.Add(() => GUILayout.Label("Added function"));
``csharp
launcher.DoGUI();
``!windowLaunchers
- WindowLaunchers automatically adjusts the layout when opening a window