Creating a Toggle Switch System in Unity step by step (Toggle Button)

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

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

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

    Good Tutorial!
    Found it on Discord😄I think this series is suitable for almost all kind of games.
    Hope to see more tutorials on how to add amazing animations to Sliders!

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

      Thank you =D! And yeah, this will fit with a whole range of projects, I'd say :) I just published a part two for this tutorial, in which I go into more detail on styling: ruclips.net/video/673nETMP22Q/видео.html

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

    Great stuff! Those toggle-switches look🔥.
    Also, definitely picking Dragoners.

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

    Damn! Spent a morning getting one of these made for work - I'd have liked to animate them like this instead of swapping sprites on a toggle, and never thought of driving a slider like that! :)

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

      Thank you :D! There will probably come another situation in which you can use this ;)

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

    At 4:00min you show corrected version of SetStateAndStartAnimation(). If I am not mistaken there is no point in running again animations, so we could also remove additional variable "previouseValue" and just do checking like this: if(CurrentValue == state) return;
    All in all great video. Nice job!

  • @Sentenello
    @Sentenello 4 месяца назад

    I dont see how you implement the actual star snow and stop. Are you creating two functions and call them ontoggleon and on toggleoff ?

  • @bigYoda-jt4kf
    @bigYoda-jt4kf 4 месяца назад

    when I make the slider uniteractable, I cannot interact with it, the only real error I am receiving has to do with the line that says: _slider.value = Slidervalue, a nullreference.

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

    How did you get those lines in the Hierarchy

    • @ChristinaCreatesGames
      @ChristinaCreatesGames  11 месяцев назад

      vHierarchy has those =)! It is a paid asset, though: assetstore.unity.com/packages/tools/utilities/vhierarchy-2-251320?aid=1101lr4hF

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

    Team Furies, checking in

  • @muhammettahirtekatli245
    @muhammettahirtekatli245 11 месяцев назад +1

    Great Tutorial 💯

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

    Really great.

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

    Great tutorial! :)

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

    thx

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

    Really? Is this the way most toggle switches work? I did not think it was that easy😅

    • @ChristinaCreatesGames
      @ChristinaCreatesGames  10 месяцев назад

      Sometimes, easy stuff is just... easy ;D But honestly, at first, I'd thought this would be more complex, too.

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

    geez!

  • @hldfgjsjbd
    @hldfgjsjbd 10 месяцев назад

    RIP Controller or Keyboard users. Slider will never be selected when navigating.