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
  • РазвлеченияРазвлечения

Комментарии • 10

  • @davidheeren3751
    @davidheeren3751 9 месяцев назад +3

    Very concise and helpful. Love it!

  • @thisormaybethis
    @thisormaybethis Год назад +5

    That's so easy that I will apply it all over my game :)

  • @acbwacfoi
    @acbwacfoi 26 дней назад +2

    I love you for this video

  • @ItsBlobby
    @ItsBlobby 5 месяцев назад +1

    Hey, i really like the title text. Is there a tutorial showing how you made it?

    • @SunnyValleyStudio
      @SunnyValleyStudio  5 месяцев назад

      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 🙂

  • @arunachalpradesh399
    @arunachalpradesh399 8 месяцев назад +1

    will this also work for mobile screen touch on image??

    • @SunnyValleyStudio
      @SunnyValleyStudio  8 месяцев назад +1

      By default EventSystem should process the touch input the same way that mouse click so I think it should work.