ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Gamepad Cursor with Input System - Unity Tutorial

Автор: samyam

Загружено: 2021-10-14

Просмотров: 41638

Описание: Make a custom gamepad cursor using Unity's New Input System. This way you can navigate UI using a controller similar to a mouse.

ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
https://sam-yam.itch.io/samyam-full-s...

📥 Get the Source Code 📥
  / 57282387  

🤝 Support Me 🤝
Patreon:   / samyg  
Donate: https://ko-fi.com/samyam

Thanks GeekZebra for helping make this video possible!
*Sorry for the desk noises, the mic is really sensitive and setting the controller up and down is not helping.

►🔗 Relevant Video Links 🔗
ᐅ Virtual Mouse Input System Documentation
https://docs.unity3d.com/Packages/com...
ᐅ Kenney - Crosshair Pack
https://www.kenney.nl/assets/crosshai...

In this video I show you how to make a gamepad virtual mouse cursor that can navigate around the scene and interact with the UI. This works with the new input system, any canvas scale and canvas type, the PlayerInput component, and you can adapt it further to fit your needs easily.

We use a gamepad or controller and pipe the input to a Virtual Mouse in the Input System. In our Input Action Asset UI map (created from the PlayerInput component), we add actions for the position and click of the Virtual Mouse. That input action asset is used in the Event System to replace the system mouse values.

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!

😎 Other Cool Unity Assets 😎
ᐅPeek - Editor Toolkit: https://assetstore.unity.com/packages...
ᐅEditor Console Pro: https://assetstore.unity.com/packages...
ᐅRainbow Folders 2: https://assetstore.unity.com/packages...

►⏱️ Timestamps ⏱️
0:00 Intro
0:38 Install Input System
1:07 Gamepad Cursor Samples
1:57 Set up Scene
2:44 Create Cursor UI Image
4:27 Gamepad Cursor Script
19:51 PlayerInput and Input Action Asset
22:46 Debugging & Fixes
24:38 Preview working
25:40 Add Cursor Padding
26:40 OnControlsChanged Switching Between Mouse & Gamepad
33:28 Quick Null Reference Errors Fix
33:55 ScrollView Preview
34:18 Outro

💖💖THANK YOU TO ALL MY PATRONS 💖💖

❯❯❯ My Links ❮❮❮
💗 Patreon 💗
  / samyg  
💬 Discord Server 💬
  / discord  
🐦 Twitter 🐦
  / samyam_utube  
📚 Facebook 📚
  / samyam.youtube  
🎵 Music 🎵
Ambient Gold
streambeats.com
👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
https://www.amazon.com/shop/samyam

#madewithunity #gamedev #unity

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Gamepad Cursor with Input System - Unity Tutorial

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Add Gamepad Support Using Unity's NEW Input System

Add Gamepad Support Using Unity's NEW Input System

How to: Virtual Mouse with Gamepad (Input System Unity Tutorial)

How to: Virtual Mouse with Gamepad (Input System Unity Tutorial)

Custom Cursor with Input System - Unity Tutorial

Custom Cursor with Input System - Unity Tutorial

Навигация по меню контроллера и клавиатуры с системой ввода — Учебное пособие по Unity

Навигация по меню контроллера и клавиатуры с системой ввода — Учебное пособие по Unity

The Power of Scriptable Objects as Middle-Men

The Power of Scriptable Objects as Middle-Men

How to use NEW Input System Package! (Unity Tutorial -  Keyboard, Mouse, Touch, Gamepad)

How to use NEW Input System Package! (Unity Tutorial - Keyboard, Mouse, Touch, Gamepad)

Учебное пособие по Unity 2D: прицеливание и стрельба в позиции мыши

Учебное пособие по Unity 2D: прицеливание и стрельба в позиции мыши

Робот-Пианино Загорелся, Играя Rush E (Сложнейшую Песню в Мире)

Робот-Пианино Загорелся, Играя Rush E (Сложнейшую Песню в Мире)

Making UI That Looks Good In Unity

Making UI That Looks Good In Unity

Как использовать систему ввода Unity

Как использовать систему ввода Unity

Unity's NEW input system in 13 minutes

Unity's NEW input system in 13 minutes

How to Control Your Menu with Keyboard/Gamepad | Unity Tutorial

How to Control Your Menu with Keyboard/Gamepad | Unity Tutorial

Complete and Persistent Control Rebinding with the New Input System - Unity Tutorial

Complete and Persistent Control Rebinding with the New Input System - Unity Tutorial

Простой физический контроллер плоскости в Unity

Простой физический контроллер плоскости в Unity

Колесо оружия — Учебное пособие Unity для начинающих

Колесо оружия — Учебное пособие Unity для начинающих

20 Advanced Coding Tips For Big Unity Projects

20 Advanced Coding Tips For Big Unity Projects

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Add Gamepad RUMBLE with Input System | Easy Unity Tutorial

Add Gamepad RUMBLE with Input System | Easy Unity Tutorial

How to Rebind Your Controls in Unity (With Icons!) | Input System

How to Rebind Your Controls in Unity (With Icons!) | Input System

Я нанял разработчиков Fiverr, чтобы сделать одну и ту же игру на разных движках.

Я нанял разработчиков Fiverr, чтобы сделать одну и ту же игру на разных движках.

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]