Unity New Input System Sinhala | UI Key Rebinding Explained | Bonus Content Part 02
Автор: EraganX
Загружено: 2025-11-05
Просмотров: 0
Описание:
මෙම Bonus Part 02 වීඩියෝවෙන් අපි Unity New Input System එකේ තවත් professional feature එකක්, ඒ කියන්නේ UI එකක් හරහා Player ගේ keys වෙනස් කිරීමට (Key Rebinding) ඉඩ දෙන හැටි බලමු. 🎮 මේක Game එකකට අත්යවශ්යම feature එකක්. අපි මේ පාඩමේදී කලින් Bonus Part 01 හි හදපු GameInputManager එකම තවත් දියුණු කරනවා.
අපි "Jump" button එක rebind කරලා මේක කොහොමද වෙන්නේ කියලා පැහැදිලිව, beginner-friendly විදියට ඉගෙන ගමු.
👨💻 මේ Video එකෙන් ඉගෙනගන්න දේවල්:
PerformInteractiveRebinding() හරහා අලුත් key එකක් listen කරන හැටි.
SaveBindingOverridesAsJson() වලින් PlayerPrefs වලට keys save කරන හැටි.
LoadBindingOverridesFromJson() වලින් Game එක පටන් ගනිද්දී keys load කරන හැටි.
GetBindingDisplayString() පාවිච්චි කරලා UI එකේ Button text එක update කරන හැටි.
Rebinding වලදී Action Maps (Player/UI) නිවැරදිව handle කරන හැටි.
📺 Channel – eraganX 🎓 Level – Intermediate to Advanced Developers 🕹 Unity Version – 6000+
(English Description)
In this Bonus Part 02 of the Unity New Input System Sinhala Tutorial Series, we'll implement a professional-grade feature: Key Rebinding via a UI. This is a must-have for almost any PC game. We will build directly on the GameInputManager script we created in Bonus Part 01.
We'll use the "Jump" button as a clear, beginner-friendly example to demonstrate the entire process from start to finish.
💡 In this video, you will learn:
How to use PerformInteractiveRebinding() to listen for a new key press.
How to save new bindings to PlayerPrefs using SaveBindingOverridesAsJson().
How to load saved bindings at startup using LoadBindingOverridesFromJson().
How to update UI text with the new key name using GetBindingDisplayString().
How to properly manage Action Maps (Player/UI) during the rebinding process.
🎮 Next Series: Unity Input System Advanced Sinhala 📺 Channel: eraganX
#UnitySinhala #UnityTutorialSinhala #NewInputSystem #Unity #GameDevSinhala #UnityTutorial #KeyRebinding #UnityUI #GameInputManager #SriLanka #යුනිටි #UnityBeginnerTutorial
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: