SELECTION MENU in Unity

  Рет қаралды 44,508

Pandemonium

Pandemonium

Күн бұрын

Learn how to make a selection menu in Unity that you can use for car selection, levels selection, character selection etc.
● Get the starting scene here: drive.google.com/open?id=1K2f...
● Download Complete Project: drive.google.com/open?id=1hyj...
● Free assets used in the project(go give them a 5 star rating!):
assetstore.unity.com/packages...
assetstore.unity.com/packages...
Subscribe and turn on the notifications if you're interested to see more!
➤ Discord : / discord
➤ Patreon: / pandemonium_games
➤ Instagram: / pandemonium_games
➤ Twitter: / pandemoniumnick
➤ Itch: nickbota.itch.io/
#pandemonium #selectionunity #selectionmenu
Tags: selection menu unity,selection unity,garage menu unity,garage unity,selection unity3d,selection menu,level selection,level selection unity,car selection,car selection unity,character selection unity,selection menu tutorial,selection unity tutorial,garage selection unity,car shop unity,selection unity 3d,pandemonium games unity,SELECTION MENU in Unity,unity character selection,unity character selection menu,character selector unity,unity shop
0:00 Intro
0:25 Project Setup
1:35 Changing Cars
4:05 Adding Animations and Sounds
6:14 Recap

Пікірлер: 189
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
To anyone asking how to load this car into your game scene check out my latest tutorial: kzbin.info/www/bejne/i4uamGt7rqxpgJI
@ggre55
@ggre55 2 жыл бұрын
Keep it app my friend u are so cool
@M1dn1ghts0n
@M1dn1ghts0n 9 ай бұрын
ive been making a game of my own and while the save and load system works for choosing my characters i cant get the camera to follow them once they are spawned into the scene because the prefab only exists in the scene when playing the game how can i fix this im stuck and need an answer at your earliest convenience.
@ZacharyAghaizu
@ZacharyAghaizu 3 жыл бұрын
I was looking for this for an hour! Thank you!
@vince5365
@vince5365 3 жыл бұрын
its quick and simple and to the point i like that . keep it up man
@g-dev7336
@g-dev7336 2 жыл бұрын
thank you. i've used this in the level selection menus and it works fine
@timinz5548
@timinz5548 2 жыл бұрын
Very helpful, I spent a lot of time looking for it. Thanks Bro :D
@saadmansuri4092
@saadmansuri4092 3 жыл бұрын
This is the most perfect tutorial i've seen on this problem. Keep it Up my man, Subbed
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks man! This means a lot :)
@vishuu528
@vishuu528 3 жыл бұрын
Thank you so much! This is what exactly I was looking for.
@Skaski107
@Skaski107 2 жыл бұрын
Very good! It makes my game so better looking!
@dabbayoo
@dabbayoo 3 жыл бұрын
was looking for a playmaker character selection tutorial but this is even easier, thanks a lot.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
glad it helped, good luck with your game :)
@MrBear69
@MrBear69 2 жыл бұрын
this is what I've been looking for, thanks!
@maddened3746
@maddened3746 2 жыл бұрын
i spent a whole fking day trying to implement this exact functionality by my own and couldnt even find a tutorial to follow this type of gameobject selection scenario .... thanks a bunch mate u just saved my skin !
@lukeheron3189
@lukeheron3189 2 жыл бұрын
Thank you so much man this has saved so much time for me
@gagang4286
@gagang4286 3 жыл бұрын
Nyc one. I just saw a couple of videos before this one and it seems to be that this is the best way to do it.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thanks, glad it helped you :)
@dkordy
@dkordy Жыл бұрын
my good!! this is the most effitient and most simpliest Selection Menu i have seen on you tube! evryone else unnessesery complicate! Soooo Thank you !!! From now on i m going to learn from you - so please keep it simple and clean!!! THANK YOU!!!!
@dkordy
@dkordy Жыл бұрын
and your voice its so calm and warm and i can listnenig to you all day! THANKS AGAIN!!
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
No, thank you for the kind words! Hope you find more useful stuff on my channel, good luck 🙌
@aloshtrader3104
@aloshtrader3104 3 жыл бұрын
Deserve a new follower... ur voice is clear the video is short and full of details 👍🏻👍🏻👍🏻 keep it bro
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
thanks a lot dude!
@ggre55
@ggre55 2 жыл бұрын
Woow I am really impressed and the best part I learned something
@zainprox9881
@zainprox9881 2 жыл бұрын
This Helped me Tysm
@mudo1453
@mudo1453 2 жыл бұрын
thank you so much, you really know this job
@aldomuhammad8489
@aldomuhammad8489 4 жыл бұрын
wow, thanks for this tutorial... you make the codes so simple... I just starting to learn unity and c#, I'm looking forward to your next tutorial... especially tutor how to active the car in the game scenes.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks a ton! Don't worry you'll get to this level and probably even better :), will do my best to release more tutorials but my job is kinda eating all of my time now.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
may be a bit late after 6 months but I made the tutorial on how to activate the car in the game, check it out if you still need it :)
@alexmarius7215
@alexmarius7215 Жыл бұрын
Thanks so much ❤
@laurscode5778
@laurscode5778 4 жыл бұрын
Great tutorial!Thanks a lot)
@jaceksawinski912
@jaceksawinski912 3 жыл бұрын
You are awesome dude!
@equiaux_music
@equiaux_music 11 ай бұрын
This is very helpful , Thank you so much , A LOTTTTT!
@PandemoniumGameDev
@PandemoniumGameDev 11 ай бұрын
Glad it helped, you're very welcome!
@aphelion5201
@aphelion5201 3 жыл бұрын
Omg!! Thank you so much!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
You're very welcome :)
@AbdelDevp
@AbdelDevp Жыл бұрын
awesome tuto, thanks
@StigDesign
@StigDesign 4 жыл бұрын
Really cool :D Love it :D Thank you so much :)
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
Made possible by your great idea, thanks!
@StigDesign
@StigDesign 4 жыл бұрын
@@PandemoniumGameDev :D
@brianstevenpajarillo249
@brianstevenpajarillo249 3 жыл бұрын
U sir just earned a sub! Keep it up
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks, you're awesome!
@NotOG_
@NotOG_ 3 жыл бұрын
Thanks, Man Helped A lot :) I subbed👍
@NotOG_
@NotOG_ 3 жыл бұрын
Pls help the back button is not working :(
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@NotOG_ how exactly is it not working? do you get any errors?
@NotOG_
@NotOG_ 3 жыл бұрын
@@PandemoniumGameDev No errors it got fixed👍 Thanks for this great tutorial!
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@NotOG_ awesome, great job! :)
@NotOG_
@NotOG_ 3 жыл бұрын
@@PandemoniumGameDev Thanks Man! ;) You helped me a lot through this tutorial.. can't express that in words
@M1dn1ghts0n
@M1dn1ghts0n 9 ай бұрын
When I try to do a camera follow I can't attach it to the car control because then it won't follow the actual car
@FrancybelloCoding
@FrancybelloCoding 3 жыл бұрын
nice tutorial!
@robloxptfs696
@robloxptfs696 3 жыл бұрын
thanks and i subbed
@shazeerrra
@shazeerrra Ай бұрын
Hi, if i have 5 different game scenes is the character user choose will stay through all the scenes?
@juliavela9282
@juliavela9282 2 жыл бұрын
THANKS!! :))))))
@top1shorts86
@top1shorts86 4 жыл бұрын
Thank's dude you are asome!
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
you are as well, thanks!
@yassenbel7733
@yassenbel7733 3 жыл бұрын
tanks bro
@heixiao5690
@heixiao5690 10 ай бұрын
Hi, this tutorial was very helpful to my project, thank you. And I had a question want to ask, I had tried by combine this selection menu to a game scene, but after I click on play button, the car is not spawn alone but all the car spawn at same time, may I ask how to load a character for the game?
@PandemoniumGameDev
@PandemoniumGameDev 10 ай бұрын
Just deactivate all the car objects in the editor before pressing play
@talismanskulls2857
@talismanskulls2857 2 жыл бұрын
Isn't it better to have characters selected from inventory as prefabs, especially if you intend on having this connected to a server?
@moy3162
@moy3162 Жыл бұрын
nice video
@duaneamos619
@duaneamos619 3 жыл бұрын
Thanks for a simple and clear solution. I want to use it Photon2. I've added Photoview to my vehicles and 'using Photon.Pun' to my namespaces at the top. Are their any other modifications I need to make it work with Photon2?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
not sure, haven't made a complete game with Photon yet. Will do it in the future.
@zackcastro4717
@zackcastro4717 2 жыл бұрын
Greetings, right now I am in the trouble of creating a character store but where the character is obtained randomly, practically with the same mechanism as Crossy road where there is a scene where the player spends a certain amount of money from the game and the machine throws a random character at him and then the player can go to select him in another cutscene where the characters are not unlocked and unlocked. that's what I'm trying to do, however my little knowledge of c # slows me down a bit. Then it occurs to me that perhaps this is a topic that draws attention to make a video tutorial since on KZbin there is not a single video that explains the topic. Greetings
@komi-san8794
@komi-san8794 10 ай бұрын
Hey man, just found this wonderful tutorials which helps me a lot, thank you...and I have a question, if I want to start my game after this selection, how should I do......Im a newbie to Unity and still in learning so Im not so much clear on using it...may I have some advise?
@PandemoniumGameDev
@PandemoniumGameDev 10 ай бұрын
Use a play button and load the next scene when it's pressed. You can check out my save system video, it includes this part
@komi-san8794
@komi-san8794 10 ай бұрын
@@PandemoniumGameDev ok, thank you for the help
@jamesyuwanantkhammanat793
@jamesyuwanantkhammanat793 3 жыл бұрын
thank you so much
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you're very welcome! :)
@hernans10
@hernans10 3 жыл бұрын
Great video, thank you, one question though, how do you persist the car you have chosen into the actual game scene? do you use a generic car and then change its sprite render ?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
First step is to save the currentCar number somewhere so it's still available in the next scenes and when you restart the game, a SavingManager script will do the job. 2. If you have a 2D game, yes changing the sprite on the car according to the currentCar number is good. 3. If you have a 3D game I would make an array of gameobjects that holds the references to all your 3D car models and instantiate just the car you need when you start the game. Hope this helps, I'll try to expand on this in the future and make a tutorial on it but it's not gonna be this month, maybe August.
@hernans10
@hernans10 3 жыл бұрын
@@PandemoniumGameDev great, thank you for your kind reply, im looking forward to that tutorial
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@hernans10 just posted the tutorial you needed, 5 months late but it's there :D
@Mikemetal12
@Mikemetal12 3 жыл бұрын
Nice tutorial!! easy to comprehend for a total newbie like me, one question, how can I make the count return to the first car when it gets to the first/last one on the list instead of disabling the button?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Glad you found it easy to follow. Change the CarSelection.cs to this: public class CarSelection : MonoBehaviour { [SerializeField] private Button previousButton; [SerializeField] private Button nextButton; private int currentCar; private void Awake() { SelectCar(0); } private void SelectCar(int _index) { for (int i = 0; i < transform.childCount; i++) transform.GetChild(i).gameObject.SetActive(i == _index); } public void ChangeCar(int _change) { currentCar += _change; if (currentCar > transform.childCount - 1) currentCar = 0; else if (currentCar < 0) currentCar = transform.childCount - 1; SelectCar(currentCar); } }
@Mikemetal12
@Mikemetal12 3 жыл бұрын
@@PandemoniumGameDev Wow thank you!
@bigboute8855
@bigboute8855 3 жыл бұрын
@@PandemoniumGameDev nice and thanks
@Tecno-soft
@Tecno-soft 4 жыл бұрын
Thank you for your excellent explanation. You can make an operation button and choose a map
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
Very glad it helped you! Sure you could make a button that chooses a map, or a button that chooses a car or an item or whatever you can imagine basically.
@Tecno-soft
@Tecno-soft 4 жыл бұрын
@@PandemoniumGameDev How to make a button can help me and thank you
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
@@Tecno-soft Are you asking me how to make a button that will help you load a level? s
@Tecno-soft
@Tecno-soft 4 жыл бұрын
@@PandemoniumGameDev Thank you for your response Yes, I want to know how to create a button that brings the map with the car and then a button to run
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
@@Tecno-soft Join the discord well talk there discord.gg/qYVkvM
@StigDesign
@StigDesign 3 жыл бұрын
i love the editing of the video :D idea for a new video: maby do a one where you use this for selecting Track and then same system for selecting car. then starting on selected level with selected car. its what i have started working on now based on your tutorial video :D on track selection am going to try use this but also scriptable object(i think) for holding track info+Trasnfrom rotation for the Earth globe track selection simular to Test Drive 5 on ps1 :D Driving is working in my game and also with a place holder Mercedes sl600 simmular to the one in Need for Speed3. so right now i have started on the menu coding, i youst got the Dont destroy on load to work properly and also a 3D sphere over the canvas background hehe ;D
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks Stig, going for nice and simple editing here :D Good idea, more people have been interested in that, will try :)
@StigDesign
@StigDesign 3 жыл бұрын
@@PandemoniumGameDev Nice :D awsome :)
@ZIAD-jp4pt
@ZIAD-jp4pt 3 жыл бұрын
really needed that in my game thanks! :D just one thing please, how can i make the camera move to the second car instead because i already made a big garage and loaded with cars and every car is in its place '^^
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
You sure can, put a script on your camera and store the positions in an array. When you change your current car call the function in the camera to change positions. But if you have lots of high-detail 3D models in your scene the performance might drop like a rock, try using Occlusion to make this better.
@ZIAD-jp4pt
@ZIAD-jp4pt 3 жыл бұрын
@@PandemoniumGameDev it worked well :D thanks
@talismanskulls2857
@talismanskulls2857 Жыл бұрын
Funny enough you dont need all this scripting for any of that. Just use a button or toggle and have one under the Get Active set as active/true in the button check spot, and the others in SetActive as unchecked or false. This allows each one by specific buttons to be selected. You then just create an empty game object with an applied audio source, put an audio source effect in it (which doesn't matter that much other than keeping unity from telling you its missing something) drag and drop that in the same SetActive slot and under the list find Audio and select the fire one shot. This way when choosing each item preview as shown you can get the same effect and add the slide in animation as well. For choosing the related model by script you do the basic so dragging in the Script holding item you then find it in the list for selected character type in the script that upon pressing start loads in the next scene. But my issues is tying that part directly to a registration/login so the selected character is registered to the specific account and the one that loads each time the person logs in for that specific account. No tutorial shows how to do that. I have such a script I been trying to fix and make this happen but I am lost and for whatever reason part of it comes up as java scripting for the registration even though its in Unity's documentation as C#.
@owl5052
@owl5052 Жыл бұрын
Its a bit late, but is there a way to make the selection looping? Advance thanks!
@aliaksoy2314
@aliaksoy2314 Жыл бұрын
you are very big man :)
@MH_Create
@MH_Create 3 жыл бұрын
its way is not optimize.. how to use [ ] Array ?
@user-kf5kx8yq6d
@user-kf5kx8yq6d 10 ай бұрын
Hi, may I ask a question, how to load the selected character to other game scene..... like I had done the character selection as the great tutorial shown by you, but now I want the selected character to be appear in other game scene, I had tried by create a start button with loading the game scene but when I enter it, there is another character (character 2) appear as well and the action is also control by user (me). I just want to control the selected character but I don't know how to do it, may I ask for help?
@PandemoniumGameDev
@PandemoniumGameDev 10 ай бұрын
I covered exactly this topic in this video: kzbin.info/www/bejne/i4uamGt7rqxpgJI&ab_channel=Pandemonium
@spaceescapeobstacles7770
@spaceescapeobstacles7770 3 жыл бұрын
Hi first of all thank you for video. I have one question is there any easy solution with this script to lock some cars ? Like if you dont finish 5th level. "SomeCare" is locked until u finished this 5throun.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Bit more complicated. First of all check the Save and Shop system tutorials, it's continuation of this. Then you'll need to add maybe a lock image on top of the buy button that doesn't allow you to buy the car, and finally make that lock disappear when your special condition is met, basically allowing players to buy the car.
@ionutbiris9743
@ionutbiris9743 3 жыл бұрын
Thanks.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you're very welcome :)
@north882
@north882 Жыл бұрын
Hi, thanks for the help! How could I integrate this menu to my website pls? (car rental website)
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
If you want to do with Unity you can only integrate it via a WebGL build (basically you're making a web game and putting it on your site). I think it's not the best option though, a web app will probably better suited but I can't help you with that unfortunately.
@0orgus0
@0orgus0 Жыл бұрын
@@PandemoniumGameDev Thanks for the feedback, appreciate it!
@MH_Create
@MH_Create 3 жыл бұрын
Thank you very much, your tutorials are excellent. Please teach us how to map the car we bought and play
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Thanks! Check out the Save System and Shop System tutorials I made, they will help you with that
@MH_Create
@MH_Create 3 жыл бұрын
@@PandemoniumGameDev Thanks For Answer How to create Customization Menu in unity For Cars like Spoiler or sport wheel ,.... how do it?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@MH_Create you're gonna need to have holder objects for each part you want to customize. Then each part needs to activate variant X. Let's say for example you have a spoiler holder, it will need a script that has references to all types of spoilers and activates spoiler 1,2,3 etc.
@MH_Create
@MH_Create 3 жыл бұрын
@@PandemoniumGameDev can you teach in a video ?!please!
@ZacharyAghaizu
@ZacharyAghaizu 2 жыл бұрын
When Introducing delete into this, I'm starting have issues with this system. The next and previous button interaction faults
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
You mean when you're deleting.cars from the array? In this case use a List, not an array and use the Remove method, the length will adapt automatically and you should be good
@ZacharyAghaizu
@ZacharyAghaizu 2 жыл бұрын
@@PandemoniumGameDev yes I was using the transform count method in this video. Thanks. For other things I used the list method. Somehow wanted to try this method for a specific section. I'll use lists and let you know if I have issues. Is there also a quick method to only have one part of the list active? Like you did with the childcount
@ZacharyAghaizu
@ZacharyAghaizu 2 жыл бұрын
@@PandemoniumGameDev It's now Working with lists thank you!! It was a wired issue because it was almost working and lead me into hours of tweaking bits of code. Appreciate it!
@botaniccanon1596
@botaniccanon1596 Жыл бұрын
I couldn't get it to work. I put my animated characters in and when push the button to swap out the characters it plays the character animation. could someone help? Thanks
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
What exactly is the issue? Your characters are not swapped when you press the button? And what do you mean by character animation? Also do you have any errors in the console?
@minalrathore9614
@minalrathore9614 3 жыл бұрын
bro thanks it solve my problem instantly but how to use selected car in game plz reply and make video on these
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
save the currentCar number by using Serialization or PlayerPrefs and use it in the next scene to spawn just the car you need.
@parthbarot2717
@parthbarot2717 3 жыл бұрын
@@PandemoniumGameDev please make a code this its important for me
@kitoo930
@kitoo930 3 жыл бұрын
hmm sir how to apply this when we choose that car like an example it will be load that car and this do the same thing when we choose the other cars and one thing for sure how to logic that into our game
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you need to save the currentCar number and use it in your next scene to activate just the car you need
@kitoo930
@kitoo930 3 жыл бұрын
@@PandemoniumGameDev I'll do that sir I'll try my best
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@kitoo930 check out my new video if you still help with that
@mkgodzila8327
@mkgodzila8327 3 жыл бұрын
"Transform' does not contain a definition for 'gameobject' and no accessible extension method 'gameobject' accepting a first argument of type 'Transform' could be found " gave the error
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
it's transform with a small letter "t" probably.
@losamigos512
@losamigos512 3 жыл бұрын
Doesnt work. Prefab on scene is disappear, when i click next or previous.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Disappears? You mean that the prefab is deleted or just not activated? Need more info to help you.
@flamergamer5552
@flamergamer5552 3 жыл бұрын
Can u please send the sound effect u used Gimme link please
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
sure, here you go: drive.google.com/file/d/1QRLPtMMDUzlWtcEEpH-bK_ZW4kUSTkpb/view?usp=sharing
@flamergamer5552
@flamergamer5552 3 жыл бұрын
@@PandemoniumGameDev Thank u :)
@blacklight8932
@blacklight8932 3 жыл бұрын
How I can save the car for the next scene? Please help
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
video on that coming up next today or tomorrow
@blacklight8932
@blacklight8932 3 жыл бұрын
@@PandemoniumGameDev Thank you!! :))
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@blacklight8932 just uploaded that video, couple days late sorry :)
@infernomakegames233
@infernomakegames233 3 жыл бұрын
hey bro....Nice Tutorial...really helped me a lot....but there is a problem with me....my previous button is not working..idk why...plz helpppp
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
did you assign the method to the button?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
also do you have any errors in the console when pressing it?
@infernomakegames233
@infernomakegames233 3 жыл бұрын
@@PandemoniumGameDev yes i assigned method and gave -1 parameter and there are no error while pressing
@infernomakegames233
@infernomakegames233 3 жыл бұрын
@@PandemoniumGameDev next button is working...but previous isnt..
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@infernomakegames233 can you hop on Discord and set me more info?
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
Wow, it's works, thanks a lot, can you please make a tutorial about how to take this ball to the first scene ? i have do this in the main menu for Ball selection, i can't load it to the scene, can you tell me how to do this Brother ?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
I'll try but it will take time. Meanwhile you can do it yourself. Use the same logic, make a parent object that is called BallController and put all the ball types as its children. When you start the scene use the same code as here to activate only one ball that has the index you want. Makes sense? :)
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
@@PandemoniumGameDev That's a great idea, thanks brother, i will try it now and will let you know what happened. Take love brother.
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
@@PandemoniumGameDev I do the same code, and it's working , but the problem is, when i select the ball in the main menu and goes in to the first level, only the first ball get active, that's mean, if i select 3rd ball in the main menu , and hit start, in the first level only the first ball get active, not the third one :( , i tried by doing then public and also static, but also they don't work. i can't load the specific ball which i want to load in the first level scene. that means, with next and previous buttons, ball changing only in the main menu scene, but it not working on first level scene :( . Can you please help me ? :(
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@hossenmohammadkhan1038 just made a new tutorial on how to solve your problem
@MultiChitoman
@MultiChitoman 3 жыл бұрын
How can I zoom and rotate the car if I use a game in a smartphone???
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
To zoom in you need a pinch movement and to rotate it just use the sliding motion and change the rotation of the object accordingly.
@TETE
@TETE 3 жыл бұрын
hi , when i click next button my models go brrrrrrrrrr, jk my models just fly away from map but in the exact same place
@musicland5786
@musicland5786 3 жыл бұрын
How to make lock and unlock car using game money
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Good question, needs a separate tutorial though and a save system. Interested to see a new video on this?
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
(Update of the previous Comment) I do the same code, and it's working , but the problem is, when i select the ball in the main menu and goes in to the first level, only the first ball get active, that's mean, if i select 3rd ball in the main menu , and hit start, in the first level only the first ball get active, not the third one :( , i tried by doing then public and also static, but also they don't work. i can't load the specific ball which i want to load in the first level scene. that means, with next and previous buttons, ball changing only in the main menu scene, but it not working on first level scene :( . Can you please help me ? :(
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
OK, I'll do my best to make the video by Monday :)
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
@@PandemoniumGameDev Thank You a Lot Brother ❤️❤️❤️😍😍
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
brother can you please make the load scene video ? please brother. i can't loading my ball in the game scene.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
public class CarSelection : MonoBehaviour { [SerializeField] private Button previousButton; [SerializeField] private Button nextButton; private int currentCar; private void Awake() { if (PlayerPrefs.HasKey("currentCar")) currentCar = PlayerPrefs.GetInt("currentCar"); SelectCar(currentCar); } private void SelectCar(int _index) { for (int i = 0; i < transform.childCount; i++) transform.GetChild(i).gameObject.SetActive(i == _index); } public void ChangeCar(int _change) { currentCar += _change; if (currentCar > transform.childCount - 1) currentCar = 0; else if (currentCar < 0) currentCar = transform.childCount - 1; PlayerPrefs.SetInt("currentCar", currentCar); SelectCar(currentCar); } } Here you go, I've added the saving system here you don't need a video for that. Notice this line: if (PlayerPrefs.HasKey("currentCar")) currentCar = PlayerPrefs.GetInt("currentCar"); Use this to get your saved car and use this number in other scenes to get the car you need.
@hossenmohammadkhan1038
@hossenmohammadkhan1038 3 жыл бұрын
@@PandemoniumGameDev Thank You a lot brother. really thank you a lot. You are really good kind man
@johnnypixel5411
@johnnypixel5411 3 жыл бұрын
I can relate with the long loading unity
@Uptodate1947
@Uptodate1947 Жыл бұрын
Plz one vedio car lock system and purchasing car with coins
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
kzbin.info/www/bejne/oWOWnIitjs2Nm5o&ab_channel=Pandemonium
@Uptodate1947
@Uptodate1947 Жыл бұрын
@@PandemoniumGameDev Thanx sir this vedio is very help full
@r1chergt737
@r1chergt737 3 жыл бұрын
Wait so how do you actually start your legit game
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
This is the selection menu, you mean how to start the gameplay? You need to load another scene where you put your game logic.
@da-fs8sz
@da-fs8sz 3 жыл бұрын
Is the link necessary yo download?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
To download the full project? Yeah
@andy_7_744
@andy_7_744 3 жыл бұрын
I can't dowland all from your link,plz update the link
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
What exactly you can't download? I checked all links now and they seem to be working
@andy_7_744
@andy_7_744 3 жыл бұрын
@@PandemoniumGameDev can you give me this link on gmail?
@kingbobbian8710
@kingbobbian8710 3 жыл бұрын
could somebody write the script for me as i am struugerling
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
you have the link in the description
@kingbobbian8710
@kingbobbian8710 3 жыл бұрын
@@PandemoniumGameDev thxs
@wilbyskeleton9579
@wilbyskeleton9579 2 жыл бұрын
dude i want to code it im not lazy
@PandemoniumGameDev
@PandemoniumGameDev 2 жыл бұрын
Go right ahead, who's stopping you? :D
@bloomerboi21
@bloomerboi21 2 жыл бұрын
@@PandemoniumGameDev lol based
@mg_882jyaai
@mg_882jyaai 3 жыл бұрын
But when i go to the next scene nothing change
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
yeah, you have to save the current car number and use it in the next scene to select the car you need.
@mg_882jyaai
@mg_882jyaai 3 жыл бұрын
@@PandemoniumGameDev How can I save the current car?
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@mg_882jyaai Sorry forgot to answer, you need to save the currentCar number either in PlayerPrefs or in a save file.
@mg_882jyaai
@mg_882jyaai 3 жыл бұрын
@@PandemoniumGameDev 👍 Thanks
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@mg_882jyaai let me know if you don't manage to do it, I'll consider making a video on it
@JosiahIronclad
@JosiahIronclad 3 жыл бұрын
He's using Lerp incorrectly, just fyi.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
Hey, thanks for the tip! Why is this wrong and how do I make it correct?
@JosiahIronclad
@JosiahIronclad 3 жыл бұрын
@@PandemoniumGameDev Lerp takes in an original position, target position, and a percentage to move to/by. If you keep inserting the current transform, then it will always move the same percentage between that and the target, meaning it will never actually reach the target. Every time it gets closer, the distance to/by move by will decrease. You should be increasing the t (percentage) value instead of the original position.
@PandemoniumGameDev
@PandemoniumGameDev 3 жыл бұрын
@@JosiahIronclad I noticed that it never stops but didn't realize that this is the wrong way! The intriguing part is that you'll see a lot of examples do it the way I did(even in the Unity documentation) but what you're saying makes complete sense. Thanks a ton for pointing it out :)
@rockyrocky12360
@rockyrocky12360 Жыл бұрын
wheres play button
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
You'll have to add that yourself 😁You can watch the next video if you're looking to load the car you selected into the game: kzbin.info/www/bejne/i4uamGt7rqxpgJI&ab_channel=Pandemonium
Unity EASY SAVE Tutorial
13:36
Pandemonium
Рет қаралды 24 М.
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 53 МЛН
LEVEL/CAR/WEAPON Selection with Unity Scriptable Objects
28:49
Pandemonium
Рет қаралды 22 М.
Discord is getting a New Look!
8:41
No Text To Speech
Рет қаралды 235 М.
How To Make A 3D Character For Your Game (Blender to Unity)
13:40
Jelle Vermandere
Рет қаралды 1,1 МЛН
Unity Character/Skin Selection Menu - Easy Unity Tutorial
13:31
ChatGPT Can Now Talk Like a Human [Latest Updates]
22:21
ColdFusion
Рет қаралды 274 М.
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 376 М.
Making Minecraft from scratch in 48 hours (NO GAME ENGINE)
16:38
Character Selector in Unity
29:20
Muddy Wolf
Рет қаралды 11 М.
train rush part 7722 #shorts #viral #trending
0:54
voxzon gaming
Рет қаралды 30 МЛН
Clash Of Clans X Haaland Troll Face Edit🔥☠️ | #shortsvideo #capcut
1:00
BRONZE TO GRANDMASTER SKILL IN REAL lIFE
0:17
FRN PLAYER 444
Рет қаралды 125 МЛН
Frog Prince Rush With Herobrine and Entity
0:32
Realistic Craft
Рет қаралды 50 МЛН