Button Click Events Unity | C# | Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • In this tutorial I will show you how to handle button click events in Unity using C#. We will increment a counter text everytime we click on a button.

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

  • @catbirdrule782
    @catbirdrule782 Год назад +4

    Not sure of you will see this but I just wanna say this tutorial was exactly what I needed ❤❤.

  • @lromero3913
    @lromero3913 Год назад +8

    nice tutorial! it helps me, I didn't know we had to drag the game object with the script into the button

  • @hibiscushumbani
    @hibiscushumbani 3 месяца назад

    easy and straight to the point

  • @mattg55555
    @mattg55555 3 месяца назад +1

    great one

  • @kevinkoolen
    @kevinkoolen 10 месяцев назад +1

    crisp and clear.

  • @knowledgelover2736
    @knowledgelover2736 9 месяцев назад +1

    thank you!! this saved me.

  • @epctxd4227
    @epctxd4227 7 месяцев назад +1

    thx helped a lot

  • @mossboss5695
    @mossboss5695 Год назад +2

    a good simple tutorial, thank you!

  • @zeynally486
    @zeynally486 10 месяцев назад +1

    You're the best

  • @tbtitans21
    @tbtitans21 8 месяцев назад +2

    Its a decent tutorial but try to zoom the screen size for the viewers sake while filming a tutorial. Nearly impossible to read / see what you are working on.

    • @spyrav
      @spyrav 4 месяца назад +1

      on phone u can zoom. I dont know about android though. But in iphone everythin good

  • @Animeman36
    @Animeman36 6 месяцев назад +1

    Thank you very much for the tutorial. How do you hide and unhide the button until it is needed?

  • @pisel5945
    @pisel5945 Год назад

    Thank you this tutorial really helped me

  • @mxjokereh
    @mxjokereh Год назад +1

    Thanks, god bless

  • @swezyys
    @swezyys 6 месяцев назад +1

    thanks bro

  • @Malo5659
    @Malo5659 3 месяца назад

    nice tuto

  • @christophergamer626
    @christophergamer626 4 месяца назад +1

    im lazy somtimes but if you did you would have saved me and earned 3+ subs, ( i have 3 devices)

  • @christophergamer626
    @christophergamer626 4 месяца назад +2

    next time plz put the code in the comments plz

  • @BigGuy_Trades
    @BigGuy_Trades Год назад +1

    How should I go about having a 2nd button that subtracts? I've tried three different scripts and each treats the buttons separately, adding from zero or subtracting from zero, instead of effecting the same variable

  • @Everypersonevertoexist
    @Everypersonevertoexist Год назад +1

    This worked until I left game mode and went back. The counter text just dissapeared. It's not a big problem for me since I don't need it for my game, but I'm just curious if you know why it happened.
    Nevermind I worked it out.

  • @voquang4350
    @voquang4350 Год назад +3

    can you do this in unity 2021.3.13f

    • @titanovsky
      @titanovsky Год назад +1

      yeap

    • @dagadag2944
      @dagadag2944 Год назад +2

      @@titanovsky Why can't I? in unity 2021.3.10f