Skip to content

Automatic UI generation for game settings created with HouraiOptions.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

HouraiTeahouse/HouraiOptions.UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HouaiOptions.UI

An extension package for HouraiOptions that provides automatic UI construction for options created by HouraiOptions.

Currently the only supported UI framework is uGUI, Unity3D's built in UI framework.

Installation

  1. Install the following dependencies:
  1. Install the latest compatible *.unitypackage from the releases page for the target Unity3D version.
  2. (Optional): Alternatively simply load the files from the git repository instead of unitypackage.

Usage

// See HouraiOptioons for information about other attributes
[OptionCategory("Audio Options")]
public class SomeOptions {

    // Non-annotated options will be exposed using the default 
    [Option]
    public float OptionFloat1 { get; set; }

    // Change the drawer by providing an alternative drawer attribute
    // These alternative versions 
    [Option, Slider(0f, 1f)]
    public float OptionFloat2 { get; set; }

}

Supported Controls

  • Toggle - A simple on/off click. Works with bool.
  • IntField - A standard text entry box for integers. Default for int.
  • StringField - A standard text entry box for strings. Default for string.
  • FloatField - A standard text entry box for floating point values. Default for float.
  • Slider - A draggable slider between two extremes. Works with int and float.
  • Dropdown - A dropdown to select between different values. Works with string.
  • ResolutionDropdown - A dropdown for selecting from available. Works with string.

About

Automatic UI generation for game settings created with HouraiOptions.

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages