How to make UI Image respond to click event in Unity
HTML-код
- Опубликовано: 3 июл 2023
- Use 𝗘𝘃𝗲𝗻𝘁 𝗧𝗿𝗶𝗴𝗴𝗲𝗿 component to quickly 𝗮𝗱𝗱 𝗢𝗻𝗖𝗹𝗶𝗰𝗸 functionality to you 𝗨𝗜 𝗲𝗹𝗲𝗺𝗲𝗻𝘁 ✨🖱️👆 (or any other event 🙂)
#UnityTips #Unity2d #Unity3d #gamedev #gamedevelopment #uiux #csharp #IndieGameDev #shorts Развлечения
Very concise and helpful. Love it!
Glad it was helpful! 🙂
That's so easy that I will apply it all over my game :)
Thanks for watching 🙂
I love you for this video
Thanks for watching! 👍
Hey, i really like the title text. Is there a tutorial showing how you made it?
Sorry at the time I didn't know much about making text titles so i have just used the premade one from the asset pack github.com/sparklinlabs/superpowers-asset-packs/tree/master/prehistoric-platformer
If you want to make it yourself you would need something like Photoshop and you would make the text and duplicate it to make the "3d" effect using layers. You would need to polish it a bit. You could make your main text part as a mask for a yellow texture with cracks to make the text look like this. Lastly you would group it all and "outline" to the group to add the black and another outline to add white outline 🙂
will this also work for mobile screen touch on image??
By default EventSystem should process the touch input the same way that mouse click so I think it should work.