Using Unity's "NEW" Input System with C# Events
One Wheel Studio
Unity's new input system is event-based plus it handles keyboard mouse and gamepads easily and quickly. The video looks at action maps, actions, bindings, action types, interactions, and processors. Which can be used to dial in the controls for a Unity project. The system can broadcast messages, use Unity events, or best of all use C# events which can clean up your code - specifically your update functions.
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 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 Warning!!! 0:09 Intro 0:40 Why use the new system? 2:04 Adding the New Input System 2:50 Creating the Input Asset 3:23 Action Maps 4:06 Actions 4:27 Action Types 6:35 Interactions 7:10 Processors 7:30 Creating Bindings 10:19 Saving Input Asset 10:39 Default Player Input Component 11:14 Generate C# Class & Events 11:50 Player Controller Class 15:10 Testing the Controller 16:08 Want to see more??? 16:30 THE END
#unityinputsystem #GameDevelopment #Unity3D #indiedeveloper ... https://www.youtube.com/watch?v=YHC-6I_LSos
133722474 Bytes