Skip to content

Buttons

Simon edited this page Sep 9, 2020 · 9 revisions

Namespace: WIDVE.Utilities
Location: Utilities/Buttons

Buttons

A set of scripts that lets you store buttons and input methods as ScriptableObjects. Many of the other scripts in this package use buttons in this way.
Since buttons are ScriptableObjects, their settings can be edited by clicking on each button in the Project tab. These settings will be shared by any script using that same button object. If you need to use the same input with different settings for different scripts, simply create an additional Button object with the same input. Make sure to keep track of which button object is used for which script!

Creating Buttons

Individual buttons can be created using the Create/Button/... menu.
A set of the most commonly used buttons can be generated automatically by using the top menu item WIDVE/Generate Mouse and Keyboard Buttons. Buttons can be generated for other platforms as well.
When using a script that needs a Button object, clicking on the small dot next to the button field will bring up a popup menu showing all buttons available in the project. Choose one from here, or drag one in from the Project tab.

Clone this wiki locally