Unity OnGUI(IMGUI) extensions for Rapid prototyping/development
Unity OnGUI(IMGUI) extensions for Rapid prototyping/development
Unity 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.rapidguiAdd following lines to the dependencies section of the Packages/manifest.json.
"ga.fuquna.rapidgui": "https://github.com/fuqunaga/RapidGUI.git".unitypackageDownload a .unitypackage file from the Release page.
value = RGUI.Field(value, label);CustomClass
public class CustomClass
{
public int publicField;
[SerializeField]
protected int serializeField;
[NonSerialized]
public int nonSerializedField;
[Range(0f, 10f)]
public float rangeVal;
public string longNameFieldWillBeMultiLine;
}
customClass = RGUI.Field(customClass, nameof(customClass));value = RGUI.Slider(value, min, max, label);RGUI.MinMaxSlider(minMaxVal, minMaxRange, label);
RGUI.MinMaxSlider(ref floatMin, ref floatMax, rangeMin, rangeMax, label);MinMaxInt,MinMaxFloat,MinMaxVector2...)MinMaxselectionPopupIdx = RGUI.SelectionPopup(selectionPopupIdx, new[] { "One", "Two", "Three" });
selectionPopupStr = RGUI.SelectionPopup(selectionPopupStr, new[] { "One", "Two", "Three" });// Initialize
fold = new Fold("Fold");
fold.Add(() => GUILayout.Label("Added function"));fold.DoGUI();// Initialize
launcher = new WindowLauncher("WindowLauncher");
launcher.Add(() => GUILayout.Label("Added function"));launcher.DoGUI();Toggle open/close window
Resizable
Has a close button
WindowLaunchers automatically adjusts the layout when opening a window
Please check the usage from the script below RapidGUI/Example/Scripts/
the object is a RapidGUI settings and update hooks. If not in the scene, it will be generated automatically.
See PrefsGUI
No open issues yet, or sync has not completed.