В новой системе ввода Unity можно нажимать и удерживать одну и ту же клавишу.
Christina Creates Games
0:00 / 0:00
В новой системе ввода Unity можно нажимать и удерживать одну и ту же клавишу.
2 606 просмотров · 1 день назад
Christina Creates Games
13,2 тыс. подписчиков
2 606 просмотров · 1 день назад
You can assign different actions to tapping a button and holding it with Unity's new input system - or double tapping it, releasing it, and more! You'll hardly need any code at all, too.
In this tutorial, I'll show you how to:
Tap a key to trigger one effect
Hold the same key to trigger a different effect
Hold the key to charge up, and trigger the effect on release
Double tap for a different effect than a single tap
Keep an effect active while the key is held, and end it on release
📖 Chapters
00:00 Different effects, same key
00:47 Setting up and using the new input system
02:28 Holding a key for different effects
04:37 Tapping a key to enable overloading
05:23 Slow tap interaction
06:00 Multi tap works great for startegy games
07:13 Press interaction makes it more versatile
I wrote the book on TextMesh Pro!
All infos here: https://www.christinacreatesgames.com...
Assets I used to create the environment of the scene:
https://assetstore.unity.com/lists/in...
📁 Get my PDF guidebooks on Unity UI
I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
☕ Ko-Fi: https://ko-fi.com/christinacreatesgam...
💬 Discord 💛
You are very welcome to join! / discord
🛍️ Recommended Assets
https://assetstore.unity.com/lists/hi... [affiliate]
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=110... [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreat... [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCrea... [affiliate]
🔖Humble Bundle: https://humblebundleinc.sjv.io/xLGLNR [affiliate]
🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedev...
☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames
#unitytutorial #unity3d #gamedev #indiedev