How to create a Unity button you can right click
In this tutorial, you will learn how to create a button component that not only supports left click, middle click and right click events, but also displays them in the inspector.
This tutorial covers:
- How to create a UI element that responds differently to left, middle, and right mouse clicks.
- Explaning the Selectable base
- How to implement the IPointerClickHandler interface to handle click events.
- How to define separate UnityEvents (e.g., onLeftClick, onMiddleClick, onRightClick) for each mouse button.
Hope you'll enjoy it!
📖 Github
Find my scripts here: https://github.com/Maraakis/ChristinaCreatesGames/tree/main/UI%20Navigation
💬 Discord 💛
You are very welcome to join! https://discord.gg/Gy7a9h3APK
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join https://discord.gg/8pDT2J2TBX !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ Recommended Assets
https://assetstore.unity.com/lists/highly-recommended-9071944798250?aid=1101lr4hF [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com/bookshelf
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=1101lr4hF [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreatesgames [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCreatesGames [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [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/gamedevelopment-consulting/
☕ 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
Видео How to create a Unity button you can right click канала Christina Creates Games
This tutorial covers:
- How to create a UI element that responds differently to left, middle, and right mouse clicks.
- Explaning the Selectable base
- How to implement the IPointerClickHandler interface to handle click events.
- How to define separate UnityEvents (e.g., onLeftClick, onMiddleClick, onRightClick) for each mouse button.
Hope you'll enjoy it!
📖 Github
Find my scripts here: https://github.com/Maraakis/ChristinaCreatesGames/tree/main/UI%20Navigation
💬 Discord 💛
You are very welcome to join! https://discord.gg/Gy7a9h3APK
📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/
💬 Join the Discord
You are very welcome to join https://discord.gg/8pDT2J2TBX !
🎮 Play My Games
🎲 https://christinacreatesgames.itch.io
🛍️ Recommended Assets
https://assetstore.unity.com/lists/highly-recommended-9071944798250?aid=1101lr4hF [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com/bookshelf
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=1101lr4hF [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreatesgames [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCreatesGames [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [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/gamedevelopment-consulting/
☕ 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
Видео How to create a Unity button you can right click канала Christina Creates Games
Комментарии отсутствуют
Информация о видео
24 февраля 2025 г. 19:01:10
00:03:31
Другие видео канала