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.
Version 1.0.2 of the input system was used along with Unity 2020.3
Assets Used (affiliate links)
******************************
Low Poly Farm: assetstore.unity.com/packages...
Male Peasant Modular Pack: assetstore.unity.com/packages...
Want to support the Channel?
*******************************
Buy me a coffee: www.buymeacoffee.com/onewheel...
Shop the Unity Asset Store (affiliate): assetstore.unity.com/top-asse...
Become A Channel Member: / @onewheelstudio
Or a Patron: / onewheelstudio
Grab a T-Shirt: onewheelstudio.com/merch/
My video and streaming kit: kit.co/onewheelstudio/tutoria...
Buy a Game Design Book: kit.co/onewheelstudio/game-de...
Other Links
************
Discord: discord.onewheelstudio.com
Twitter: / onewheelstudio
Devlog: onewheelstudio.com/
Twitch: / onewheelstudio
Video Gear List (Amazon Affiliate)
***********************************
Sony A6100 Camera: amzn.to/32logXz
Sigma 16mm 1.4 Camera Lens: amzn.to/3KA4Wr4
GoXLR (audio interface): amzn.to/35dmr03
Shure SM7B Mic: amzn.to/3fNbV1E
Blue Mic Arm: amzn.to/3tHgwdQ
Neewer Light: amzn.to/3rD8eRv
Light Softbox: amzn.to/3GUaHgQ
Neewer RGB Light: amzn.to/3rCTQJ9
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
Негізгі бет Unity's "NEW" Input System with C# Events
Пікірлер: 251