Skip to content

Auto creation GUI elements by doing variable declaration.

License

Notifications You must be signed in to change notification settings

rasmus-z/PrefsUGUI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrefsUGUI

Description

The library that auto creation GUI elements by doing variable declaration.

Inspired by fuqunaga/PrefsGUI
PrefsGUI is a so useful library. But, PrefsGUI is using the OnGUI system, So I have some problem by itself.

  • In high resolution display, GUI window is showing like so small.
  • OnGUI system don't have kind and useful visual.
  • I heard that OnGUI system to make a spike sometimes.
  • OnGUI system can't validate about input values.

By uGUI system, I can solve those problems like easy.

PrefsUGUI

Usage

Sample code

using PrefsUGUI;

public class Example : MonoBehaviour
{
    private PrefsVector2 vec2 = new PrefsVector2("vec2");
}

If you want to view more details, Let's check Example codes.
Example codes

Behaviour

  • Using the XmlStorage library for saving and loading data.

  • I generate and use a dedicated Canvas.

  • You can move uGUI window by mouse moving.

  • If you pressed discard button, back values to last saved.

Implemented type

  • PrefsBool
  • PrefsButton
  • PrefsColor
  • PrefsColorSlider
  • PrefsEnum
  • PrefsFloat
  • PrefsFloatSlider
  • PrefsInt
  • PrefsIntSlider
  • PrefsString
  • PrefsVector2
  • PrefsVector2Int
  • PrefsVector3
  • PrefsVector3Int
  • PrefsVector4

References

fuqunaga/PrefsGUI
XmlStorage

About

Auto creation GUI elements by doing variable declaration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%