Menu with Tabs UI - Top Down Unity 2D #6

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 31

  • @GameCodeLibrary
    @GameCodeLibrary  19 ชั่วโมงที่ผ่านมา

    Check out the full tutorial playlist📋: th-cam.com/play/PLaaFfzxy_80HtVvBnpK_IjSC8_Y9AOhuP.html
    Download the Top Down Template🐸: gamecodelibrary.itch.io/top-down-2d-base-template
    Get all source code‼: www.patreon.com/c/GameCodeLibrary
    Enjoy!!

  • @motomario4603
    @motomario4603 9 วันที่ผ่านมา

    I am really grateful about finding your channel for the JRPG i am making since i don`t know a whole lot about coding and Jrpgs tutorials are extremely scarse. I hope my project goes well with the help of your tutorials and you have my wholeheartedly gratitude for these videos.

    • @GameCodeLibrary
      @GameCodeLibrary  9 วันที่ผ่านมา

      You’re welcome!!! This first tutorial series will be a base for any top down game - but originally was going to be just for a turn based rpg game 🙀! So it should work well for a base for your game 😇
      Once the base is done I’m going to branch into the other genres using this template, so will get back to a turn based rpg at some point!! You’ll probably be ahead of me by then though 😉 good luck!

  • @SV20071
    @SV20071 12 วันที่ผ่านมา

    underrated channel

  • @user-uf3rh7eu2x
    @user-uf3rh7eu2x 3 หลายเดือนก่อน +2

    Awesome Tutorial! Thanx.

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +3

      You’re welcome I’m glad you enjoyed :-)

  • @EricOnline92
    @EricOnline92 3 หลายเดือนก่อน +1

    Keep up the fantastic work! Greatly appreciate the videos!

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      Thank you for your support, I'm happy you like them! :-)

  • @dm1tryrin
    @dm1tryrin 3 หลายเดือนก่อน +1

    A good and underrated channel! I give likes to every video, now I will also write comments for promotion.

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      Thank you for your support!! Means a lot to me, I’m glad you enjoy the videos too.

  • @elreynel553
    @elreynel553 3 หลายเดือนก่อน +1

    Thank you so much for this video GCL, it was very great, interesting and useful! Hope you have a very nice day, keep it up you're a pro! :D

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      Thanks a bunch! Your support means a lot! :-)

  • @odracir3300
    @odracir3300 3 หลายเดือนก่อน

    i was gonna say " if this updated" 😂 u just posted today. Thanks, i have a project to develop and menus is something I've been delaying to learn👍🏻

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      Good timing then! 😝 I make everything as clean and simple as possible, so hopefully this makes learning menus easy! :-)

  • @sunrisedesigns
    @sunrisedesigns 3 หลายเดือนก่อน

    Best Content ever im learning unity since today and i managed to make a scrolling platformer rn and i will do ur tutorial to animate my player now

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      So glad my videos are helping! Hope you can make anything you can ever dream of 🙏

    • @sunrisedesigns
      @sunrisedesigns 3 หลายเดือนก่อน

      @@GameCodeLibrary Could you make a tutorial on simple particles bc I want it make that when my player in the platformer jumps it makes some particles and when he walks some dirt at his feet. Also is it possible to play Sound Effects continuous for example steps when walking?

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      @@sunrisedesigns I was about to reply and link my particles video but I saw you've found it!! :-)

    • @sunrisedesigns
      @sunrisedesigns 3 หลายเดือนก่อน

      @@GameCodeLibrary Yeah I managed to do it im now on my enemys and animations. Do i have to credit ur work in any way?

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน

      @@sunrisedesigns Nope you don't have to credit anything if you don't want to! I'm just glad to help!

  • @dm1tryrin
    @dm1tryrin 3 หลายเดือนก่อน

    I really hope that the save system will be implemented via JSON. As there is some confusion about how to work with it correctly. Although I already have experience of writing my own saving system - but some things in it did not work as I expected.

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +2

      Yes I am going to do saving with json! I’ll keep it as a simple json file to begin with so it’s easy to see how it’s saving, then we can look into serialising later on :-)
      The method I’ll show is the one I use for all my games so it should hopefully work for any for you too! I’ll try get the saving vid out next week 🙏

  • @whats_with_eris
    @whats_with_eris 3 หลายเดือนก่อน

    Hi, is there any possibility to add Hover on Tab ?

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      Hey!
      You can use something like this and add it to a script on your UI object:
      public class UIElement : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
      {
      public void OnPointerEnter(PointerEventData eventData)
      {
      Debug.Log("Mouse enter");
      }
      public void OnPointerExit(PointerEventData eventData)
      {
      Debug.Log("Mouse exit");
      }
      }
      When the pointer enters, change your tab to what you’d like the hover effect to be. When it exits, set the tab back to its default settings.
      I haven’t tested this code yet as I’m not at my pc! But I’ll try it when I get home and if it works I’ll add it to my tabs too :-) think I’d make the tab highlight in yellow when hovered 🧐

    • @whats_with_eris
      @whats_with_eris 3 หลายเดือนก่อน

      @@GameCodeLibrary
      I got it!
      Thank you and sorry for bothering.
      I did it that way before but I had it wrongly set in "unity components"

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      @@whats_with_eris Cool nice!! And it's no bother - we're all collaborating here :-)

    • @whats_with_eris
      @whats_with_eris 3 หลายเดือนก่อน

      @@GameCodeLibrary
      Anyway, if you have time, please add it to the video.
      I'm probably stupid, but the script doesn't work at all, because it resets the "active color tab" even if I used IPointerDownHandler
      I somehow did it via Event Trigger, but it was a pain and I have no idea how it is possible that it works at all

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +1

      @@whats_with_eris Sure I'll try it out and see what I can do! I'll reply to your comment if I can get something easy working as well and send you the code :-)

  • @whats_with_eris
    @whats_with_eris 3 หลายเดือนก่อน

    finally, here is my solution.... I'm definitely stupid xD
    1. create a new script
    2. insert it into each Tab
    Hover color cannot be the same as Active color in this solution - or change it by just one point to make it look the same
    example:
    activeColor = new Color(0.97f, x, x, x);
    hoverColor = new Color(0.96f, x, x, x);
    CODE:
    public class UIHover : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
    {
    public Image hoverImages;
    Color hoverColor = new Color(0.96f, 0.62f, 0, 1);
    Color notActiveTabColor = Color.white;
    public void OnPointerEnter(PointerEventData eventData)
    {
    if (hoverImages.color == notActiveTabColor)
    {
    hoverImages.color = hoverColor;
    }
    }
    public void OnPointerExit(PointerEventData eventData)
    {
    if (hoverImages.color == hoverColor)
    {
    hoverImages.color = notActiveTabColor;
    }
    }
    }

    • @GameCodeLibrary
      @GameCodeLibrary  3 หลายเดือนก่อน +2

      Nice!!! So cool well done for figuring it out 🤩🙏