WSWhitehouse / Unity-Input-Selector

Turn a string field into a dropdown of all available inputs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Turn a string field into a dropdown of all available inputs

License:MIT License


Languages

Language:C# 100.0%