• Stars
    star
    294
  • Rank 141,303 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unity OnGUI(IMGUI) extensions for Rapid prototyping/development

RapidGUI

openupm

Unity IMGUI extensions for Rapid prototyping/development.

rapidgui

Installation

Install via OpenUPM

The package is available on the openupm registry. It's recommended to install it via openupm-cli.

openupm add ga.fuquna.rapidgui

Install via git URL

Add following lines to the dependencies section of the Packages/manifest.json.

"ga.fuquna.rapidgui": "https://github.com/fuqunaga/RapidGUI.git"

Install via traditional .unitypackage

Download a .unitypackage file from the Release page.

Getting Started

  • Open and checkout the RapidGUI/Example/RapidGUIExample.unity
  • see also the usage from the script below RapidGUI/Example/Scripts/

Functions

RGUI.Field()

field

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

fieldCustomClass

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));

RGUI.Slider()

Slider

value = RGUI.Slider(value, min, max, label);
  • Display slider GUI according to type of numbers

RGUI.MinMaxSlider()

MinMaxSlider

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<T>

RGUI.SelectionPopup()

fold

selectionPopupIdx = RGUI.SelectionPopup(selectionPopupIdx, new[] { "One", "Two", "Three" });
selectionPopupStr = RGUI.SelectionPopup(selectionPopupStr, new[] { "One", "Two", "Three" });

RapidGUI.Fold / Folds

fold

// Initialize
fold = new Fold("Fold");
fold.Add(() => GUILayout.Label("Added function"));
fold.DoGUI();

RapidGUI.WindowLauncher / WindowLaunchers

windowLauncher

// Initialize
launcher = new WindowLauncher("WindowLauncher");
launcher.Add(() => GUILayout.Label("Added function"));
launcher.DoGUI();
  • Toggle open/close window
  • Resizable
  • Has a close button

windowLaunchers

  • WindowLaunchers automatically adjusts the layout when opening a window

And more!!!

Please check the usage from the script below RapidGUI/Example/Scripts/

Tips

A "RapidGUI" object appears in the hierarchy

RapidGUIBehaviour the object is a RapidGUI settings and update hooks. If not in the scene, it will be generated automatically.

Save/Load parameters

See PrefsGUI

Reference

More Repositories

1

RosettaUI

Code-based UI library for development menus for Unity
C#
178
star
2

GpuTrail

ComputeShader implementation trails for Unity
C#
119
star
3

ComputeShaderBVHMeshHit

Unity ComputeShader implementation of BVH(Bounding Volume Hierarchy) based mesh hit checking.
C#
63
star
4

VatBaker

A tool to bake VAT (Vertex Animation Texture) from AnimationClip with sample shaders for Unity.
ShaderLab
42
star
5

VFXGraphSandbox

Unity VFX Graph technical experiment.
C#
42
star
6

SyncUtilUNET

Sync Utilities For UNET
C#
38
star
7

QuadWarp

QuadWarp sample code for Unity
C#
27
star
8

DomainWarping

Domain Warping implementation for Unity.
HLSL
19
star
9

GpuLifeGame

C#
14
star
10

MirrorReflection

http://wiki.unity3d.com/index.php/MirrorReflection4 modified to support to unity default Quad.
C#
14
star
11

CameraProjector

ShaderLab
14
star
12

Headquarters

GUI tool for remotely operating multiple windows PCs using PowerShell
C#
12
star
13

MeshDivider

Simply Grid-based mesh dividing tool
C#
10
star
14

UnityStartupBat

Batchfile
7
star
15

PrefsGUISyncForMirror

Sync subset for PrefsGUI over Mirror
C#
6
star
16

UnityUtil

Miscellaneous utilities for Unity
C#
6
star
17

SyncUtilForMirror

Sync Utilities For Mirror
C#
6
star
18

GPUFluid

C#
6
star
19

DataGridSelectAll

SelectAll Checkbox on DataGrid that bindings DataTable
C#
5
star
20

Grid3D

simple 3d grid renderer for Unity
GLSL
5
star
21

PortalGate

An experiment of a functional clone of Valve's Portal on unity.
C#
5
star
22

RoomProjection

C#
4
star
23

ColorSpace

Color space conversion for Unity hlsl
HLSL
4
star
24

SpriteChanger

Replace Sprites And AnimationClips In AnimatorController For Unity.
C#
4
star
25

VersionUpdateOnBuild

Set PlayerSettings.bundleVersion OnPreprocessBuild
C#
3
star
26

PrefsGUISyncForUNET

PrefsGUI subset for synchronization over the network
C#
2
star
27

MaterialPropertyAccessor

C#
2
star
28

DeterministicCalculationChecker

C#
2
star
29

PrefsGUI-PostProcessingURP

PrefsGUI extensions for URP PostProcessing
C#
2
star
30

irc_log_viewer

IRC log viewer for web browser.
JavaScript
1
star
31

LabelNamePropertyAttribute

C#
1
star
32

AmazonWishListPoint

Chrome Extension: Add a function to display points on the Amazon wish list
JavaScript
1
star
33

PointCluster

C#
1
star
34

TexturePatchwork

Cut out any portion of a texture and paste it onto another texture.
C#
1
star