Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.65 KB

readme.md

File metadata and controls

35 lines (21 loc) · 1.65 KB

Virtual Buttons for Unity

Unity Asset Store

Prefabs to help create touch buttons with the new input system.

Prefabs:

  • Fixed position joystick;
  • Floating joystick with options to recenter and hide on release;
  • Directional button that is activated by clicking on any position around the center and responds to being dragged from one direction to another;
  • Directional button variations for moving vertically or horizontally;
  • Button for actions with animation when pressing.

UPM Package

Open Package Manager and select "Add package from git URL"

https://github.com/jhmaverick/VirtualButtonsForUnity.git?path=/VirtualButtonsForUnity/

or adding in /Packages/manifest.json

"com.cyberghostgames.virtualbuttons": "https://github.com/jhmaverick/VirtualButtonsForUnity.git?path=/VirtualButtonsForUnity/"

Notes

There is a bug in the new input system version 1.0.x that keeps the stick pressed when pressing 2 buttons at the same time as can be seen in this issue.

The bug has been fixed in version (1.1-preview.3), while version 1.1 is not officially released, you can check the latest development version and manually apply it to your project at (/Packages/manifest.json).