Key Rebinding with Unity's New Input System and Generated C# Code

Опубликовано: 25 Август 2021
на канале: One Wheel Studio
22,208
571

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.

Key Rebind Code: https://github.com/onewheelstudio/Adv...

Want to support the Channel?
*******************************
Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-asse...
Become A Channel Member:    / @onewheelstudio  
Or a Patron:   / onewheelstudio  
Grab a T-Shirt: https://onewheelstudio.com/merch/
My video and streaming kit: https://kit.co/onewheelstudio/tutoria...
Buy a Game Design Book: https://kit.co/onewheelstudio/game-de...

Other Links
************
Discord: http://discord.onewheelstudio.com
Twitter:   / onewheelstudio  
Devlog: https://onewheelstudio.com/
Twitch:   / onewheelstudio  

Video Gear List (Amazon Affiliate)
***********************************
Sony A6100 Camera: https://amzn.to/32logXz
Sigma 16mm 1.4 Camera Lens: https://amzn.to/3KA4Wr4
GoXLR (audio interface): https://amzn.to/35dmr03
Shure SM7B Mic: https://amzn.to/3fNbV1E
Blue Mic Arm: https://amzn.to/3tHgwdQ
Neewer Light: https://amzn.to/3rD8eRv
Light Softbox: https://amzn.to/3GUaHgQ
Neewer RGB Light: https://amzn.to/3rCTQJ9

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