HEALTHBAR in Unity - [Unity Tutorial]

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 64

  • @user-cb8pj2eb1g
    @user-cb8pj2eb1g 2 роки тому +19

    YES I LOVE THAT. Short, no 3min intro and explaining what a boolean does, lot's of quality information and a good coding style. Appreciate it keep it up!

    • @Tarodev
      @Tarodev  2 роки тому +15

      First you want to start by creating a new project in Unity...

    • @AnnaGlin
      @AnnaGlin Рік тому +5

      @@Tarodev but wait, you didn't tell me how to ~download unity~ buy a computer

    • @Tarodev
      @Tarodev  Рік тому +7

      @@AnnaGlin Oh shoot, sorry. First, ensure your computer meets the minimum requirements to run unity~

  • @yummy8074
    @yummy8074 Рік тому +2

    This is one of the best tutorials I've ever seen. Great pace/speed of which you're explaining things and no unnecessary prolonging of the video till the 10:01 time. If teachers were paid appropriately, I could imagine you being one. Good thing YT recommended me you among the very first videos after searching for healthbars in Unity.
    Thank you for not making me suffer through a 25 minutes long video with unnecessary gobbledygook.

  • @wizzzle2948
    @wizzzle2948 2 роки тому +23

    instead of the bar looking at the camera which looks weird when the healthbar is not in the center of the screen. I just set the rotation of the healthbar to the rotation of the camera, this way its always perfectly horizontal and visible

    • @47farhad83
      @47farhad83 2 роки тому +3

      smart

    • @4xh9
      @4xh9 Рік тому +1

      @@47farhad83 very smart🥰🥰

    • @47farhad83
      @47farhad83 Рік тому

      @@4xh9 indeed

  • @syngleton
    @syngleton 3 роки тому +7

    The quality of your tutorials, both in the sense of how helpful they are and how visually/audibly impressive they are, is phenomenal. Keep making these high-quality tutorials and I've no doubt you'll become the next Brackeys. Great job! 👍

    • @Tarodev
      @Tarodev  3 роки тому +3

      That's about as big a compliment you could give me. I grew up on Brackeys.
      I'll strive to deliver the best content I can, thank you!

    • @caleb6067
      @caleb6067 3 роки тому +1

      syngleton could not have said it any better. Love the content. With Brackeys gone you seem like the guy to fill that void. Top tier videos, and you only just stated. Keep up the good work!

    • @Tarodev
      @Tarodev  3 роки тому +2

      @@caleb6067 Guys stop, you're makin' me blush

  • @ebbcelent
    @ebbcelent Рік тому +1

    Underrated channel, Unity should hire you to make tutorials for em, I swear. Your channel is Gold my guy

    • @Tarodev
      @Tarodev  Рік тому

      Thank you brother 🙏

  • @knownmystic
    @knownmystic Рік тому +10

    If you can't apply your image as a sprite on the image ui. Simply do this, Click on your image. Look in the inspector view. Change the Texture type from 2D to Sprite (2D and UI). Images can't be added to the scene, sprites can be. Therefore, convert it to Sprite first.

    • @jackbernard6194
      @jackbernard6194 Рік тому

      Thank You that was Very Helpful

    • @knownmystic
      @knownmystic Рік тому

      @@jackbernard6194 No worries! Glad it helped mate.

  • @imTroNic
    @imTroNic 2 роки тому +1

    Thanks for this tutorial. Its so simple and nice looking helathbar!

  • @a3dadventure79
    @a3dadventure79 10 місяців тому

    solid tut, thanks, keep em coming solid!

  • @asmred15
    @asmred15 Рік тому +4

    if for the Image _healthBarSprite fill amount is not showing up, make sure at the top you put: Using UnityEngine.UI;

  • @nomegakazuto7432
    @nomegakazuto7432 11 місяців тому

    Thanks Mister 👌 God bless you !

  • @noobcraft5712
    @noobcraft5712 3 роки тому +3

    You deserve 100 thousand subscribers. When is the discord server coming?

    • @Tarodev
      @Tarodev  3 роки тому +2

      I hadn't even thought about it, but I'll make one now! Stay tuned ❤️

  • @juuzou4620
    @juuzou4620 Місяць тому

    Great! Thank you so much! :D

  • @Otter_Knight
    @Otter_Knight 2 роки тому +1

    Great video, keep up the good work!

  • @HassaanALal
    @HassaanALal 2 роки тому +3

    You could use Transform.LookAt(), was there a reason for preferring Quaternion.LookRotation() ?

  • @arsikkbar
    @arsikkbar Рік тому

    That is really great!!

  • @dmitrywroclaw9165
    @dmitrywroclaw9165 3 роки тому +1

    Thank you!

    • @Tarodev
      @Tarodev  3 роки тому

      You're quite welcome!

  • @AquilaPebble
    @AquilaPebble Рік тому +2

    Where did you get the healthbar sprite from?

  • @nickolasmachado9274
    @nickolasmachado9274 Рік тому

    thank you for this video

  • @ScrewY0UguyS
    @ScrewY0UguyS 2 роки тому +1

    Hey there! Great tutorials. I've watched every single one of them and I swear, I've never put so many likes under any youtube channel. Thanks a lot for your work, hoping to see more advanced tutorials.
    I have a question: is it really a good practice to create canvases in every single instance of your enemy or character? Or is there a better way to approach this when dealing with bigger amounts of healthbars/UI's?

    • @rahulbundele3
      @rahulbundele3 2 роки тому

      I got same doubt , did you find answer to your question??

  • @junnoonrafid113
    @junnoonrafid113 3 місяці тому

    Its just that this thing bugs me when i have to set a ' public camera cam' variable and manually chose a camera, how would i do it in a multiplayer game where there is no chance to manually selecting which cam to look at, or again in a scene where two cameras are looking at the health bar, what do i do then?

  • @jonaas2266
    @jonaas2266 9 місяців тому +1

    Can you give me the image of HealthBar please

  • @voxtelnismo
    @voxtelnismo 10 місяців тому

    What is the advantage of using [serializedfield] private instead of public?

  • @fardoushhassan2567
    @fardoushhassan2567 2 роки тому

    Thnks a lot!

  • @libiroli
    @libiroli 3 роки тому +1

    Thanks for the nice tutorial! This canvas setup is super easy to use. What do you recommend for maximum # of canvases per scene? My scene could have as many as 30 units perhaps... Thank you again.

    • @Tarodev
      @Tarodev  3 роки тому +1

      30 should be absolutely fine. I remember running 50+ without any performance loss.

  • @chrisheld8463
    @chrisheld8463 Рік тому

    Hi. You assigned a canvas for the player. What if you have multipe players? Whould you end up with multiple canvases?

  • @RedditPlease957
    @RedditPlease957 6 місяців тому

    can you share the healthbar sprites please?

  • @jro7590
    @jro7590 6 місяців тому

    why can't i drag and drop the sprite that I made to th inspector in image

  • @SomeUselessDud
    @SomeUselessDud Рік тому

    How did u do the attacking and damage towards the placeholder

  • @karpuz8272
    @karpuz8272 2 роки тому +1

    Hello! I'm trying to use this with a UI panel and 3d object and it works fine with rotation as you said, but the panel changes form as i change X or Y coordinates. Do I need additional line of code to handle this?

  • @tiagolobo158
    @tiagolobo158 Рік тому

    How you do that healthbar sprite?

  • @owen22s
    @owen22s Рік тому

    i cant place the canvas as a sprite even when i place the foreground in the canvas please help

  • @Ai_Unofficial
    @Ai_Unofficial Рік тому

    Particle system please

  • @B4NTO
    @B4NTO 7 місяців тому

    Any ideas why if i enable and disable the canvas of the healthbar, it also messes up the texts of other canvases text mesh pro texts on buttons and my inventory.? It only happens if i play the build of the game and not in editor.... It's unrelated to this specific video, I created a damage popup. I think it could be related to the strange Canvas(Environment) that has all settings greyed out these days in prefabs somehow :S

  • @Lawlesed
    @Lawlesed 2 місяці тому

    on top down, x30 y 45 not works.

  • @tristanjames5843
    @tristanjames5843 2 роки тому +1

    that little guy looks like a little among us!

  • @basarinho
    @basarinho 13 днів тому

    way too complicated didnt had to create 2 scripts

  • @snaxmiller
    @snaxmiller Рік тому

    for my look at camera script I use something like the following:
    transform.forward = (invert ? 1 : -1) * cameraTransform.forward;

  • @beqab90
    @beqab90 2 роки тому

    Do not waste your time this does not work.

  • @isktcha
    @isktcha Рік тому

    you just wasted 10 hours of my life i did the same thing but i keep getting error

    • @Tarodev
      @Tarodev  Рік тому +5

      By your attitude and the way you strung your sentence together, this is definitely a You problem.

    • @MrBa143
      @MrBa143 Рік тому +4

      Imagine having the audacity, to say that someone who made a good 6 minute youtube tutorial, wasted your time, just beacuse you are incapable of understanding it, even though the 99% of us understood it perfectly well.

    • @Tarodev
      @Tarodev  Рік тому +1

      @@MrBa143 my knight in shining armor ❤️

  • @marinelfoundation8210
    @marinelfoundation8210 Рік тому

    Thank you!