Skip to content

Turn a string field into a dropdown of all available inputs

License

Notifications You must be signed in to change notification settings

WSWhitehouse/Unity-Input-Selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Unity Input Selector

Simple attribute that turns a normal string field into a dropdown of all available Input Axes in the inspector. Never misspell the name of an input axes ever again.

Image from Gyazo

Installing & Using the Attribute

  • Download the source code or check the releases on this repository for a specific Unity Package download or download the Latest Unity Package

    • If you downloaded the Unity Package you will need to import it. Assets -> Import Package -> Custom Package and select the Unity Package you just downloaded
  • Put a [InputSelector] attribute in front of any string field

    Image from Gyazo

  • Done! You will now have a dropdown selector which includes all of the available Input Axes.