How to use the new input system in Unity! I go over installing the package, the different ways to use the input system, and the recommended way!
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
sam-yam.itch.i...
📥 Get the Source Code 📥
/ 55295489
►🤝 Support Me 🤝
Patreon: / samyg
Donate: ko-fi.com/samyam
🔗 Relevant Video Links 🔗
ᐅALL of my Input System videos
• Unity's NEW Input System
ᐅInput System Documentation
docs.unity3d.c...
ᐅInput System Changelog (features and fixes in different versions)
docs.unity3d.c...
ᐅMigrate From Old Input System
docs.unity3d.c...
ᐅUnsubscribe Lambda Event Handler Stack Overflow Discussion
stackoverflow....
This video goes over installing the Input System via Unity's Package Manager, creating an Input Action Asset and assigning an action map, making several actions of different Action Types and assigning multiple bindings to each, mentioning Interactions, Processors, and Control Schemes available, Generating a C# class from the Input Action Asset and referencing it in code, subscribing to the different events that the actions send (started, performed, cancelled), getting the values from the actions directly, using the PlayerInput component to get the values instead (lots of nice helper functions here), assigning an InputAction through the Inspector along with getting a reference to an existing action through an InputActionReference (you can also reference a map!), creating actions dynamically through code, using the Input Debugger to see your actions at runtime, and going over the Migrate from Old Input System guide that Unity posted.
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
😎 Cool Unity Assets 😎
ᐅPeek - Editor Toolkit: assetstore.uni...
ᐅEditor Console Pro: assetstore.uni...
ᐅRainbow Folders 2: assetstore.uni...
►⏱️ Timestamps ⏱️
0:00 Install
1:18 Intro
1:51 Input Action Asset
3:57 Value vs Passthrough
4:20 Assign Binding to Action
4:40 Input System Events (Started, Performed, Canceled)
5:16 Multiple Bindings to Action
5:43 2D Vector Composite
7:42 Interactions
8:34 Processors
8:57 Modifiers
9:17 Control Schemes
10:12 Generate C# Script Overview
11:48 Generate C# Script Usage
18:30 PlayerInput Component
23:24 Event Lambdas
24:39 Enable UI for the Input System
24:54 Input Debugger Short Preview
25:08 Migrate From Old Input System
26:29 InputAction & InputActionReference
27:30 Dynamic InputActions through Code
30:30 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
/ samyg
💬 Discord Server 💬
/ discord
🐦 Twitter 🐦
/ samyam_utube
📚 Facebook 📚
/ samyam.youtube
🎵 Music 🎵
Fretless by Kevin MacLeod
Link: incompetech.fi...
License: creativecommons...
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
www.amazon.com...
#unity3d #unitytutorial #unity2021
17 авг 2024