Changing Action Maps with Unity's "New" Input System
One Wheel Studio
Changing actions maps with Unity's new input system is easy and allows precise control of which inputs are being listened to. For example switching between a 3rd person controller, vehicle controller or UI buttons. An input manager can provide a static instance of an input action asset as well as centralized control of toggling action maps making implementation easy and error-free.
Version 1.0.2 of the input system was used along with Unity 2020.3
Assets Used (affiliate links)
Low Poly Farm: https://assetstore.unity.com/packages/3d/environments/industrial/low-poly-farm-pack-182924?aid=1100lHSw Male Peasant Modular Pack: https://assetstore.unity.com/packages/3d/characters/humanoids/fantasy/male-peasant-modular-pack-cute-series-180874?aid=1100lHSw
Want to support the Channel?
Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-assets/top-paid?aid=1100lHSw Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join Or a Patron: https://www.patreon.com/onewheelstudio Grab a T-Shirt: https://onewheelstudio.com/merch/ My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production Buy a Game Design Books: https://kit.co/onewheelstudio/game-design-reading-list-unity-c-blender-and-more
Other Links
Discord: http://discord.onewheelstudio.com
Twitter: https://twitter.com/OneWheelStudio
Devlog: https://onewheelstudio.com/
Twitch: https://go.twitch.tv/onewheelstudio
Timestamps
0:00 Before watching!! 0:46 Why Switch Action Maps? 1:28 Fixing a Problem 2:08 Input Manager 3:51 Implementation Example 4:20 Action Maps 4:24 Tractor Controller Class 5:31 Final Thoughts 6:37 THE END
#UnityInputSystem #GameDevelopment #Unity3D #indiedeveloper ... https://www.youtube.com/watch?v=T8fG0D2_V5M
66700037 Bytes