A very easy way to add mobile buttons in unity using the new input system.
This tutorial is for Input System 1.5.0+
This can be adapted to work with 1.4 by extending the OnScreenStick class and adding a public method to setup the button position and calling that inside the MobileInputStick class.
CHAPTERS
00:00 Installing input system
01:03 Creating player input actions
02:05 Creating cube controller
04:40 UI buttons
07:18 Twin-stick problem
08:00 Solution
15:42 Making the twin-stick areas
17:02 Testing the UI
---Notes
This is my first time trying to record a tutorial... There is still a lot to improve.
The audio was recorded later as I started mumbling without noticing while trying to record and talk at the same time. Hopefully I can fix this in the future.