Key Rebinding with Unity's New Input System with Generated C# Code
One Wheel Studio
Rebinding keys in your Unity project with the New Input System using the generated C# code. We'll look at how to create the UI code, Input Manager, handles composite inputs, C# Events to update the UI, Exclude devices, save and load the binding at runtime and allow the player to reset the binding back to the default.
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 Book: 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 Intro 1:20 Scene Setup 2:32 Controller Code 3:23 Creating ReBind UI 15:54 Input Manager 23:33 Handling Composite Bindings 30:44 Adding C# Events 33:14 Getting Binding Name at Run Time 37:06 Cancel Binding & Exclude Device 40:48 Save and Load Binding 46:39 Reset Binding to Default 50:41 THE END
#NewInputSystem #GameDevelopment #Unity3D #indiedeveloper ... https://www.youtube.com/watch?v=TD0R5x0yL0Y
274189486 Bytes