Unity Character/Skin Selection Menu - Easy Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • In this unity tutorial, you'll be learning how to make a character and skin selection menu for your game.
    You'll learn how to use scriptable objects to make a character database. Scriptable object is a data container that you can use to save large amounts of data.
    Timestamps:
    0:00 Intro
    0:17 Character Selection UI Setup
    1:32 Character Scripting
    2:56 Character Database Scripting
    5:30 Character Manager Scripting
    11:40 Player Scripting
    13:03 Conclusion
    #Hooson #Unity3D
    Play my first mobile game: Bot Attack - 2D Top-down shooter
    ➤Google Play: play.google.com/store/apps/de...
    ➤App Store: Coming soon
    ➤Follow my Instagram: / hoosontech
  • ХоббиХобби

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

  • @MarinettePFP
    @MarinettePFP 2 года назад +3

    I will definitely try this. Thank you for the clear explanation!

  • @TrixArmy
    @TrixArmy 2 года назад

    Thanks Hooson We love your amazing videos !! Well done .... Best thing ever I found on YT

  • @liangwang199
    @liangwang199 2 года назад

    Thank you Hooson!!! Your videos are amazing and helpful. Keep going

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

    One of the bests Tutorial I have watched, it helped me really a lot!! Continue like that bro

  • @jovillegas2983
    @jovillegas2983 2 года назад

    Thank you so much! I needed this tutorial video! :)

  • @issamlaoumri7591
    @issamlaoumri7591 2 года назад

    Thaanks♥, very clear and organized ! Good work !👏

  • @mageofchaos
    @mageofchaos Месяц назад

    Thank you so much! Works like a charm.

  • @justify8212
    @justify8212 2 года назад +10

    Thank you for all the amazing tutorials you make Hooson, you really have been helping me chase my dreams, thank you

    • @startandplay688
      @startandplay688 2 года назад

      hey friend can you make this video in a new way for 2021...,
      ruclips.net/video/ajzHkYow-so/видео.html&ab_channel=DonHaulGameDev-Wabble-UnityTutorials

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

      Me tooooooooooooo 🥰

  • @JakeSterlingFan
    @JakeSterlingFan 16 дней назад

    Perfect! Thankyou for the tutorial 💙

  • @Povai
    @Povai 2 года назад

    Great Video man well done!
    Subscribed!

  • @gamegrey3892
    @gamegrey3892 2 года назад

    Great video as always! Thank you!

  • @TrixArmy
    @TrixArmy 2 года назад

    Definitely it's the best videos on YT pls continue the journey 👍

  • @TrixArmy
    @TrixArmy 2 года назад

    Hey this journey of urs was epic 🔥🔥

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

    Very simple and helpful video, thank you!

  • @arcanep
    @arcanep 2 года назад

    just what i was looking for my game 😁 thanks

  • @shibalnugamingyt5611
    @shibalnugamingyt5611 2 года назад +3

    Thank you very much Hooson! This helps a lot! I do have a question, how to we add character sprite animation while selecting characters?

  • @fangola2.023
    @fangola2.023 2 года назад

    Thanks for the tutorial my brother 🙏🙇✊.I've been looking for something like this for the past few month now.im very much happy for this.Welele✊💯✨!!!!

  • @TrixArmy
    @TrixArmy 2 года назад

    After seeing this channel I am thinking what I was doing for 1 year just for good unity education you are pro bro🙏🎉

  • @TrixArmy
    @TrixArmy 2 года назад

    You are the best No one is better than you keep making these videos we will motivate you

  • @TrixArmy
    @TrixArmy 2 года назад

    Next video please bro You are our teacher . We won't be able to learn unity without you :(

  • @TransGuyShane
    @TransGuyShane 2 года назад +9

    i have been struggling with this issue for years, trying to make character creation menus and getting them to transfer over to a new scene, my work around has been building everything in one scene. this is amazing! you have helped solve a massive issue for me

    • @ez4noobs950
      @ez4noobs950 2 года назад +2

      Great bro,hope you make a better project than before

    • @TransGuyShane
      @TransGuyShane 2 года назад

      @@ez4noobs950 thanks :)
      Im currently redoing the menu system for a game I'm making for my niece and it's definitely better than it was before so it has definitely improved some what in such a short time lol.
      I am hoping I can keep improving over time tho. It's great to have videos like this that can help.
      I mean seriously I've been trying to find a solution for years and I could never wrap my head around what was being said compared to what was happening on the screen (thanks adhd) but this video made it simple to follow and the visual info tips popping up on screen helped it stick in my head.
      I hope you are able to get on with your project and it turns out well ♡

    • @ez4noobs950
      @ez4noobs950 2 года назад +1

      @@TransGuyShane it turned,cuz its finished already but thx tho.im making another project for a company now for some money and I hope your niece will be happy enought to marry you on the place after she will see the game, 😃

    • @TransGuyShane
      @TransGuyShane 2 года назад

      @@ez4noobs950 it's wicked your now doing something for money , it must feel great ♡
      haha I hope she loves it, it's a cat customisation game where she can pick what the cat looks like and she can look after it and dress it up and stuff ♡

    • @ez4noobs950
      @ez4noobs950 2 года назад +1

      @@TransGuyShane it feels so great to know that my work its appreciated by other people.
      Cat customization? That's definitely a favorite for girls. xd

  • @chermainehoo214
    @chermainehoo214 2 года назад

    GREAT VIDEO! V USEFUL! 👍🏻👍🏻

  • @richmondumali7092
    @richmondumali7092 7 месяцев назад

    Thank you very much it is very helpful and easy to understand

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

    Thank you, thanks to your video I solved my problem.

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

    thanks bro all work fine!

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

    Hi thanks for the tutorial!!
    Just one Question how do I give each skin its own Animation?

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

    How is that even posible to make such a great tuto, ty!!!

  • @Brukrex
    @Brukrex 2 года назад

    I have found a legend ☝️. Yessssssssssssssss I'm gonna subscribe right now... This is better then most Udemy courses 😎.

  • @umberto9438
    @umberto9438 2 года назад +2

    Thank you! Really helpful.
    What about when you have also an animator for each sprite?

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

    ❤ 👍 Great Brother

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

    that's good, I make notes, thanks

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

    Amazing Video! I had the Problem that I wanted to save my different cars as Prefabs but it didnt work since the PrefabUtility from UnityEditor cant be built into games. This solved my problem and I was able to add 4 different cars to my first game.
    Edit: I will like the video later, it currently has 1111 Likes and I cant ruin that number...

  • @mxtzz
    @mxtzz 2 года назад +1

    if we had scripts in place for player controls would they be able to move the character while on the select screen?

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

    I used your code for Player class selection, but I replaced Sprites With Prefabs. I did that because I didn't want to reattach scripts every time. All in all it helped a lot xD

    • @user-gb7oc4xm2t
      @user-gb7oc4xm2t Год назад

      Man, how did you do that, need help..
      Please reply as fast as you can(

  • @egzact
    @egzact 2 года назад +2

    error CS0246: The type or namespace name 'CharacterDatabase' could not be found (are you missing a using directive or an assembly reference?)

  • @greanor3712
    @greanor3712 2 года назад

    Hello, super Turorial, I have an question?
    How set an animation on the player script?
    Prefab? but on the script what to use? :)

  • @johnpetersen8260
    @johnpetersen8260 2 месяца назад

    Question, do you have any suggestions on how to load specific character animations with the character I have selected? Any articles or tutorials would be super helpful. I load the character in but the minute the character starts moving it only loads the animations for the first character in the DB. (load character 2, move, character 1 animations show) Long story. Kind of a newbie. Thanks!

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

    My small game is thankful to you, same as me

  • @user-ho6rf8wk8j
    @user-ho6rf8wk8j 3 месяца назад

    Liked and Subscribed and Watch your Videos, Thank You ❤

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

    great tutorial

  • @partishdarji26
    @partishdarji26 2 года назад

    THX IT WORKED!!!!!!!!

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

    hi i just got one question . how do you play a game with the picture ? i mean its not a character its just a sprite (png ) or foto . or am i missing something?

  • @carl4839
    @carl4839 2 года назад

    Hello, could you please make a video about how to buy the other characters, since none of the other tutorials work

  • @bastianflores5652
    @bastianflores5652 2 года назад

    u are the best!!!

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

    Thanks, bro 🤘

  • @danielminzat1686
    @danielminzat1686 2 года назад +1

    i writed the code i checked it to see if I was missing something but when i press right click hit create it dosen't show me the CharacterDataBase what can it be?

  • @universal3d170
    @universal3d170 2 года назад

    Thank you!!

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

    You rock👍🤘

  • @jovillegas2983
    @jovillegas2983 2 года назад +1

    Hello hooson. I have a question. how do you add the animation to the character database or somethin? I tried adding the ff code:
    public Animator characterAnimator;

  • @HaiJieBoy
    @HaiJieBoy 2 года назад +1

    hi hooson, is there a way to link it to a characters animation?

  • @Charlie-pu8hq
    @Charlie-pu8hq 2 года назад

    Very Nice 👍...if you create a tutorial on Character Purchase System it will be very Useful..

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

    Do you have any vídeo, How to makes a shop to buy character?

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

    When I Use The Character Manger The Name Text won't Import im using TextMeshPro (edit And it won't import Regular only legacy)

  • @bulentesmeray
    @bulentesmeray 2 года назад

    Thank You

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

    Someone please help regarding to the character database. Its saying that Character[] does not have a definition for Lenght.

  • @docchowda7087
    @docchowda7087 2 года назад

    doesnt work for me. When I go to put in the sprites, the box does not accept them. Is this because they are prefabs (on my end), please help.

  • @oliverwilson5796
    @oliverwilson5796 2 года назад +5

    I have a problem with the game object "selected character", when I add it to the scene it is not seen in the game window nor in the scene view, it is covered by the canvas

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

      This is the issue I'm currently having if I set my game window next to my scene window you can see the sprites change in the scene window but they won't show in the game window at all.
      If you fixed this issue can you help me out

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

    is it possible to do that with animations aswell? if yes how?

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

    How can I do with gameObject? I want to change character with prefab (3d model)

  • @eilam9999
    @eilam9999 2 года назад

    what about the other skins you show in you previewed picture of this video ? grate tutorial but you misunderstanding peapol (or only me)
    i looked to do like what in your pictur but you did not do it

  • @mnm__studios
    @mnm__studios 2 года назад +1

    Make a video on how to make an online high score leader board...pls hooson. I love you

  • @bzoxx
    @bzoxx 2 года назад +7

    This channel is soo underated

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

      I agree with u, bro

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

    what about 3d you use spriterenderer for 3d what is use...?

  • @hadishaheen3754
    @hadishaheen3754 2 года назад

    Ik you posted this last year but it ain't working for me can i get some help pleasee? The menu works fine but when i press play it selects the sprite of element 0 always(so the first sprite) i believe the problem is "selectedOption" is always set to 0 but i can't find the problem in the script.

    • @lilili765
      @lilili765 7 месяцев назад

      I have the exact same problem, did you find the solution?

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

    Sir How can I get the assets like character sprites or buttons?

  • @sgaming3174
    @sgaming3174 2 года назад

    Thank you

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

    How do you integrate a section with a registration system?

  • @alexsandor6135
    @alexsandor6135 2 года назад +1

    The thumbnail suggests a diffrent type of character select menu than the one you made here

  • @astronaut8909
    @astronaut8909 2 года назад

    Can you teach me how to enable the players to get coins by watching rewarded video add ,please?

  • @zoeekim2774
    @zoeekim2774 2 года назад

    Hi i hope u wil noticed my comment it can be a multiple selection?

  • @Junior.Store.Google.Play.
    @Junior.Store.Google.Play. 10 месяцев назад

    thank you

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

    Thanks

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

    what if my character is a prefab alr do i change the public SpriteRenderer? 😭

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

    Good

  • @ez4noobs950
    @ez4noobs950 2 года назад +1

    hey guys,can someone help me?
    i just get this error when I try to make the database:
    Character[]' does not contain a definition for 'Lengh' and no accessible extension method 'Lengh' accepting a first argument of type 'Character[]' could be found (are you missing a using directive or an assembly reference?)
    Can someone help me resolve this pls?

    • @TransGuyShane
      @TransGuyShane 2 года назад +1

      hey, im not sure if you ever fixed your problem but it is super simple, you have a spelling mistake, its Length, not Lengh.
      you just need to put a t between the g and the h and you should be set :)
      i hope this helps :)

    • @ez4noobs950
      @ez4noobs950 2 года назад +1

      @@TransGuyShane yes,i solved it after some hours of trying after typing that comment,but thx tho,you tried to help me and that's great 👍.Have a great day.

    • @TransGuyShane
      @TransGuyShane 2 года назад +1

      @@ez4noobs950 I'm glad you managed to sort it out :)
      Your welcome ♡
      And thank you , have a great day too 😊

  • @13_felindaveren94
    @13_felindaveren94 2 года назад

    Can you Make Touch button Control On Unity3d?

  • @mehmeh8883
    @mehmeh8883 2 года назад +2

    Great tutorial! How can i achieve this with animated characters?

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

      Do you have the answer yet? I need to know it :D

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

      @@tikikong384 I ended up using sprite swap package from unity, and saving using my own system :)

  • @daniellecapala5167
    @daniellecapala5167 7 месяцев назад

    How about 2 player in 1 scene and select the characters

  • @Mr_2N2
    @Mr_2N2 22 дня назад

    Great Tutorial, but it does not work when i build it with WebGL can anyone help?!?!

  • @Gokword
    @Gokword 2 года назад

    How can I move my character with buttons?

  • @Brukrex
    @Brukrex 2 года назад

    make video about the orthographicSize

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

    can we do it for oculus quest 2?

  • @epicbotz3032
    @epicbotz3032 2 года назад

    i want to make a game but i cant find a tutorial on youtube for anything similar to my idea how do i make the game?
    ps i dont have any game creating knowledge

    • @fangola2.023
      @fangola2.023 2 года назад

      Check out inscope studios channel it's a great place to start your own game creator journey.

  • @australiam0299
    @australiam0299 2 года назад

    Hey i just did your tutorial for my game. And everything is working, except the image of the sprite isnt changing. I've gone through the video a few times and cant seem to see where i have gone wrong tho. Can anyone help?

    • @Maffee1248
      @Maffee1248 2 года назад

      @liam Campbell. Did you every manage to sort this? I am currently having the same problem.

    • @TheKingGoose
      @TheKingGoose 2 года назад

      @@Maffee1248 do you still have this problem, because i was wondering if you found a solution to it?

    • @Maffee1248
      @Maffee1248 2 года назад +1

      @@TheKingGoose I dont have this problem anymore. i ended up using a combination of this tutorial and
      ruclips.net/video/3qlRgICRoeA/видео.html
      I created some Extra player prefabs that it could swap out so i could get animations working aswell(thrusters on ships).... it was a bit of a bodge job but it worked well enough. you can see how it worked here:
      ruclips.net/video/pDbfUHbFJIo/видео.html

    • @TheKingGoose
      @TheKingGoose 2 года назад

      @@Maffee1248 ahh okay, thanks!!

  • @aadfaasdf4081
    @aadfaasdf4081 2 года назад

    My Friend i have prefabs the character not sprite and i cant insert it to database
    What must i do?

    • @TransGuyShane
      @TransGuyShane 2 года назад

      would you be able to swap the SpriteRenderer "artworksprite" to GameObject "prefab"? (i am learning so it is a suggestion, not sure 100%)

  • @nguyentrunghieu6865
    @nguyentrunghieu6865 2 года назад

    I like video

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

    why my selected character picture doesnt show ?

  • @rsknime9843
    @rsknime9843 2 года назад

    Please how to make highscore

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

    What if I don't have a sprite, but a 3D model for my game character?

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

      I mean, a game object, that has an animator on it. I'm trying to do it with Instantiate and Destroy, but I'm having difficulties with the layers

  • @ghiancarlostan8730
    @ghiancarlostan8730 2 года назад +1

    So I followed your concept but instead of calling the UpdateCharacter() when clicked, i have a logic inside update() however it seems like I needed to call getcharacter() per frame when i already declared it at start() once. Does scriptable objects doesnt save changes in runtime unless you call it per frame? If you know the answer, thank you so much!

  • @HD_TOON
    @HD_TOON 2 года назад

    Please upload a new 2D game tutorial video

  • @startandplay688
    @startandplay688 2 года назад

    hey man you can make doodle jump game in unity,
    please make one tutorial for doodle jump game,
    please...,

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

    provide us scripts that you write in lectures

  • @TheKingGoose
    @TheKingGoose 2 года назад

    It only shows the first player in the database, i'm 99% sure there is nothing wrong with the code. It just doesn't work, and i don't know why. Can you someone help me?

    • @KazeChannelKC
      @KazeChannelKC 2 года назад

      Me too have you solve it?

    • @TheKingGoose
      @TheKingGoose 2 года назад

      @@KazeChannelKC I solved it yea, but after that i had to use a different character selection screen due to some unity build issues. Right now my laptop is at a repair shop, if i have it back. I can check if i still have the code to see how i solved it!

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

      @@TheKingGoose for some reason today the code finally works and I didn't change the code a bit. Although I actually want to change between prefab not sprite. So I still got a problem.

    • @lilili765
      @lilili765 7 месяцев назад

      ​@@KazeChannelKCdid you find the solution

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

    Im unable to drag text into Character Manager script

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

      It probably has something to do with "Text" and "Text Mesh Pro". It does not really matter which one you have. If you have "Text Mesh Pro" you will have to add some extra stuff to your script. You can look that up. Or if you want "Text" you will have to find it in the Legacy option under UI on unity.

  • @techie_buff4461
    @techie_buff4461 2 года назад

    Thank you but at last my character cannot be changed

  • @pistrantho
    @pistrantho 2 года назад

    Why don't i support my friend?

  • @stejothepisto
    @stejothepisto 2 года назад

    This not work for me :(

  • @mikoo1991
    @mikoo1991 2 года назад +1

    its not easy

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

    So bad..