UPDATE- This video is outdated now! You can still use this method for the time being with the old UnityEngine.Input API, but that is being replaced with the Input System Package for newer versions of Unity. Maybe there will be a new video when I figure it out myself! Now, the old video description:
So, your player controller script has all those calls to Input.GetButton() and Input.GetAxis(), right? Let's set up your game to recognize controllers without touching your script!
Here's the controller map I used as reference. Remember that Axes 4 and 5 are swapped!
answers.unity.com/questions/1...
And follow me for all kinds of game stuff-
Twitch: / sonofgragas
Twitter: / sonofgragas
Негізгі бет Ойындар Unity3D- Add Controller Support in 5 Minutes With No Coding!
Пікірлер: 43