Популярное

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

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

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

Топ запросов

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

Gamepad Cursor with Input System - Unity Tutorial

Автор: samyam

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

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

Описание:

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

Gamepad Cursor with Input System - Unity Tutorial

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

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

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

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

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

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

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)

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

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

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: прицеливание и стрельба в позиции мыши

Unity's NEW input system in 13 minutes

Unity's NEW input system in 13 minutes

Custom Cursor with Input System - Unity Tutorial

Custom Cursor with Input System - Unity Tutorial

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

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

Making UI That Looks Good In Unity

Making UI That Looks Good In Unity

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

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

Как Нейросеть сделала игру за 24 часа - Симулятор супермаркета | Unity Game Dev

Как Нейросеть сделала игру за 24 часа - Симулятор супермаркета | Unity Game Dev

Материалы Unreal Engine 6 уровней сложности

Материалы Unreal Engine 6 уровней сложности

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

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

Using Menus with A Controller/Keyboard in Unity

Using Menus with A Controller/Keyboard in Unity

The Power of Scriptable Objects as Middle-Men

The Power of Scriptable Objects as Middle-Men

New Input System in Unity - 2D Character Controller (2023)

New Input System in Unity - 2D Character Controller (2023)

How To Use Unity's NEW INPUT SYSTEM: SUPER EASY [Gamepad Joystick & Buttons!]

How To Use Unity's NEW INPUT SYSTEM: SUPER EASY [Gamepad Joystick & Buttons!]

How to use TOUCH with the NEW Input System in Unity

How to use TOUCH with the NEW Input System in Unity

Add Gamepad RUMBLE with Input System | Easy Unity Tutorial

Add Gamepad RUMBLE with Input System | Easy Unity Tutorial

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

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



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



Контакты для правообладателей: infodtube@gmail.com