Unity - Creating a Level Select Screen in C#

  Рет қаралды 36,299

Press Start

Press Start

Күн бұрын

Пікірлер: 85
@Chapali9a
@Chapali9a 4 жыл бұрын
Wow! Fantastic stuff. Even though I didn't understand everything in this lesson but I still learnt new stuff. I really appreciate the amount of energy you put into making these. Absolutely phenomenal. Thank you
@sakisgrig
@sakisgrig 5 жыл бұрын
Your two (relating) videos were excactly what I needed to create my scroller. I am very grateful :)
@pressstart6864
@pressstart6864 5 жыл бұрын
Love this feedback. Thank you!
@sathishvasudev1752
@sathishvasudev1752 4 жыл бұрын
Hey bro, Your video was very helpful for me. I had some issues though but got that figured out. Keep up the good work, mate!
@mrsypo02
@mrsypo02 5 жыл бұрын
this is the most clean unity tuto i ever seen god. job brother !!!
@MrWaaaaah
@MrWaaaaah 4 жыл бұрын
Great tuts. As a beginner myself, I get a good understanding as you explain straight to the point. Your speed helps too; vids that go too slow waste alot of time.. LOL. Subscribed *thumbsup*
@lominero5
@lominero5 2 жыл бұрын
Great video super easy to understand
@oliverphilbrick2986
@oliverphilbrick2986 4 жыл бұрын
Came here to see an effective way to make the buttons actually load levels. Perhaps make a part 2? as it stands now, a strong tutorial for laying out a bunch of buttons, but not very useful if you don't demonstrate how to actually wire them to functions.
@emilis3779
@emilis3779 5 жыл бұрын
You video is very entertainment. I love how you explain every thing from the video. Keep up the good work :)
@pressstart6864
@pressstart6864 5 жыл бұрын
Thank you, this video was a hard one to explain ;)
@ufukhan6696
@ufukhan6696 5 жыл бұрын
You're the BEST ❤❤
@pressstart6864
@pressstart6864 5 жыл бұрын
Thank you!
@alinazari2046
@alinazari2046 4 жыл бұрын
Your tutorials are amazingly awesome, keep on :)
@arcangy77
@arcangy77 5 жыл бұрын
awesome!! I love this kind of tutorial!! fast and very useful!! great job ^^
@pressstart6864
@pressstart6864 5 жыл бұрын
Cheers my dude
@teu2387
@teu2387 4 жыл бұрын
ur soo underrated, good job u earned a sub man
@cocagamingvideo
@cocagamingvideo 4 жыл бұрын
Amazing tutorial ! I was wondering if it was possible to use a button in order to swipe to a certain page; like an Option button that when you press it, it swipes directly to a certain panel (currentPage)? Thank you so much for your great tutorials :D
@svenwierenga2575
@svenwierenga2575 4 жыл бұрын
Never sad anything! Thanks for the great video!!!
@chrisshanaz
@chrisshanaz 5 жыл бұрын
Thanks for the great tutorial , how can i make it that each level icon goes to a different scene. Thanks!
@josechowyi
@josechowyi 5 жыл бұрын
having the same problem
@djdee04
@djdee04 3 жыл бұрын
@Bendegúz Anisics hey, if u don’t mind can you show us how lock levels and unlock them as we progress . thank yo
@bisharakhuri2504
@bisharakhuri2504 5 жыл бұрын
5:50 a reminder for me :D
@gamemaster_tv
@gamemaster_tv 5 жыл бұрын
Please, someone smart: How can I make Main Camera swipe along the UI buttons?
@jezuinnit2570
@jezuinnit2570 3 жыл бұрын
Yo Waldo I tried this and I used the source code and I applied the grid layout group but i get an error that says "NullReferenceException: Object reference not set to an instance of an object LevelSelector.SetUpGrid (UnityEngine.GameObject panel) (at Assets/ScriptsLevelSelector.cs:47)" please help
@suikasuika4157
@suikasuika4157 4 жыл бұрын
i wish you did more tuto i like the way you make them
@ei05056
@ei05056 3 жыл бұрын
I don't get it, you had already added the GridLayoutGroup to the Panel in the Unity Editor, why do you need to do it again in the code?
@justl7153
@justl7153 3 жыл бұрын
I have had same question, don't add it and everything will work fine.
@ei05056
@ei05056 3 жыл бұрын
@@justl7153 Yup, that's what I did.
@NSL2000-t3c
@NSL2000-t3c 4 жыл бұрын
I have only one question... what do I have to do so when I press on the level button it takes me to another scene??????????
@punchspelledbackwards
@punchspelledbackwards 4 жыл бұрын
using UnityEngine; using UnityEngine.SceneManagement; public class Script : MonoBehaviour { void SelectLevel(string scene) { SceneManager.LoadScene(scene); } } you can also load scenes by making a string variable then just loading it, like so: using UnityEngine; using UnityEngine.SceneManagement; public class Script : MonoBehaviour { public string levelToLoad; void SelectLevel(string scene) { SceneManager.LoadScene(levelToLoad); } } or you could do it with build indexes: using UnityEngine; using UnityEngine.SceneManagement; public class Script : MonoBehaviour { void SelectLevel() { SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); } } this is for if you want to load the next scene bte ^^
@djdee04
@djdee04 3 жыл бұрын
@@punchspelledbackwards hey can you show, how to lock levels and unlock them as we progress. Thank you
@punchspelledbackwards
@punchspelledbackwards 3 жыл бұрын
@@djdee04 kzbin.info/www/bejne/d4LTdaeog690e7c
@bene5776
@bene5776 5 жыл бұрын
I‘ve got a problem! With any new Panel/Page i is reset to 1. So I‘ve got 40 Levels on 2 pages: on the 1. Page are levels 1-20 and on the 2. page should be levels 21-40 but there are also the levels 1-20 because i is reset to 1... Do you have any solution for that? Thanks for the tutorial and your reply.
@pressstart6864
@pressstart6864 5 жыл бұрын
If you use the code in the video, it should solve your problem. At 15:40 the numbers increment for each page.
@krishshah8306
@krishshah8306 5 жыл бұрын
How could you make it so that each icon, when clicked, would go to its associated level because you cannot add a script to a game object that doesn't exist until you start it.
@pressstart6864
@pressstart6864 5 жыл бұрын
You can add a script to the icon before you make it a prefab or you can use addcomponent to add it during runtime.
@TheGeneliia
@TheGeneliia 5 жыл бұрын
@@pressstart6864 I wrote this code but it always go to last scene. in for : icon.GetComponent().onClick.AddListener(delegate { goToLevel(i); }); other code: private void goToLevel(int sceneNumber) { SceneManager.LoadScene(sceneNumber); Debug.Log(sceneNumber); }
@TheGeneliia
@TheGeneliia 5 жыл бұрын
@@pressstart6864 private void goToLevel(int sceneNumber) { SceneManager.LoadScene(sceneNumber); Debug.Log(sceneNumber); }
@aferg8587
@aferg8587 4 жыл бұрын
Ahmet Bilal ÇELİK Hey I figured it out if u need help
@daw5835
@daw5835 4 жыл бұрын
@@aferg8587 can you help me?
@CaosCreativeStudio
@CaosCreativeStudio 2 жыл бұрын
so how do you go to the next level when pressing a button
@bkkaan52
@bkkaan52 3 жыл бұрын
why my all levels are appearing on the same page and creating only one panel?
@ConcreteJungleGames
@ConcreteJungleGames 4 жыл бұрын
@Press Start Is there a way to press a button and have the screen swipe in the same way?
@uhrgmreghagemge7419
@uhrgmreghagemge7419 5 жыл бұрын
Hello, I'm not sure why It doesn't work for me. I copy pasted the code, created everything like you did even the button size, image size. The problem seems to be that the script doesn't take into account the image dimension , only the button When I print the iconDimensions = levelIcon.GetComponent().rect; It prints the button dimension and not the image, you said that the script will caculate the dimension based on the icon am I missing something ? Thanks for your help That is how it looks like : imgur.com/a/X2C5yip
@hollowbloop3662
@hollowbloop3662 5 жыл бұрын
"panel.transform.SetParent(thisCanvas.transform,false);" is the line thats casuing your issues. Unfortunately do not know how to fix it
@hollowbloop3662
@hollowbloop3662 5 жыл бұрын
Do not make the 'levelHolder' GameObject use a prefab but rather let it be the normal gameObject from the Scene. This fixed the problem for me. Hope this helps.
@TheTylerBlair
@TheTylerBlair 5 жыл бұрын
Check to see if you scaled the Icon prefab. Change the width and height attributes and reset the x and y scale back to 1.
@danieljayne8623
@danieljayne8623 4 жыл бұрын
The last video was posted 10 months ago. Where's Waldo? :(
@cfpwastaken
@cfpwastaken 4 жыл бұрын
The Button is not showing in Game and i need to make them very small because when i create one of thoose buttons they are displayed SOOOOO HUGE!
@thebluefox651
@thebluefox651 3 жыл бұрын
It thought at first that it would take me a long time and than it would'nt work and than I'll try it again and it would'nt work again, But you explain it well and easy to know what you say, you dont type so fast or so slow, it took me long but it worked! Thank you SO SO MUCH
@computercrafty9090
@computercrafty9090 3 жыл бұрын
I have an error. After displaying the no. of icons specified, it displays all the other icons down. Does anyone have a fix please. If yes then reply as fast as you can. Thanks in Advance
@EgeDai
@EgeDai 5 жыл бұрын
man you had so much room in your sound I thought my speakers were on with open ear headphones :D
@__Hay_Dar__
@__Hay_Dar__ 3 жыл бұрын
on start panel should scroll to the last unlocked level ... it would be great if you make a video for this scenario
@rainbowtomat0803
@rainbowtomat0803 4 жыл бұрын
How dit you get the trophy icon
@Zap.zz.
@Zap.zz. 2 жыл бұрын
JUST WOW
@Zap.zz.
@Zap.zz. 2 жыл бұрын
Great Tutorial😁
@hypersolfi7988
@hypersolfi7988 3 жыл бұрын
when my buttons come in they go over the top and underneath the screen
@TomerGamerTV
@TomerGamerTV 3 жыл бұрын
and how do I make it clickable?
@rainbowtomat0803
@rainbowtomat0803 4 жыл бұрын
How do jou make the clone 06:40
@chinyereajala9886
@chinyereajala9886 4 жыл бұрын
I've implemented a way to load the scenes but how do I lock them, to play a scene after finishing the last kind of system. Whatever I try just locks everything up😅.
@djdee04
@djdee04 3 жыл бұрын
@chinyere, if you don’t mind can you share the codes to launch the level??
@szymonjarosz9627
@szymonjarosz9627 4 жыл бұрын
Hey can you please help me im trying to use the firsts part of this tutorial to create image slide so i dont need all of the management of the screens i just want the user to have a max out pages your input would be amazing
@szymonjarosz9627
@szymonjarosz9627 4 жыл бұрын
Lol worked it out
@thisalrathnayake9460
@thisalrathnayake9460 3 жыл бұрын
@@szymonjarosz9627 hold im having the same problem, what was the fix?
@NonHuman69
@NonHuman69 4 жыл бұрын
i have a question i get this error do you now how i can fix this Object reference not set to an instance of an object and i get this as a messege Can't add 'GridLayoutGroup' to Page-1 because a 'GridLayoutGroup' is already added to the game object! A GameObject can only contain one 'LayoutGroup' component.
@computercrafty9090
@computercrafty9090 3 жыл бұрын
remove the grid layout group from the panel(the same panel that has the level buttons). The code itself will add it so you dont had too. Had the same error tho. Welcome :)
@lcd11001
@lcd11001 4 жыл бұрын
14:13 is the fixed
@NajeksYoutube
@NajeksYoutube 5 жыл бұрын
Everything is good but I think you forgot about " how to make buttons working". How to attach an onClick function to them.
@aferg8587
@aferg8587 4 жыл бұрын
Did you figure it out? I cant figure out how to make each button take me to a unique scene
@Zombivoro
@Zombivoro 4 жыл бұрын
​@Bendegúz Anisics Thanks, without this comment the tutorial is pointless. Although, I don't think it's a great solution. The Level Selector script should had been made with this in mind so you don't need to get the level number from the button text number, which I would say it's a pretty bad practice.
@chinyereajala9886
@chinyereajala9886 4 жыл бұрын
@Bendegúz Anisics Hey any idea on how to lock and unlock the scenes as you play through the level
@advikmalwa379
@advikmalwa379 4 жыл бұрын
Thanku I really needed this 👇 Likes for this guy
@sifsif2725
@sifsif2725 3 жыл бұрын
What about the o'clock event? I want the levels to take me to.. well specific levels how do I add that?
@DJKi2463
@DJKi2463 4 жыл бұрын
4:57
@FratNightGaming
@FratNightGaming 4 жыл бұрын
this is not explained well for beginners. too fast
@bobbybotbop
@bobbybotbop 4 жыл бұрын
no ur just dumb im a beginner and i had to speed it up because of how smart i am
@tudypie
@tudypie 4 жыл бұрын
@@bobbybotbop why you have to be like that to him... he is just learning unity calm down man
@bobbybotbop
@bobbybotbop 4 жыл бұрын
@@tudypie YOU CALM DOWN IM PERFECTLY CALM UR THE ONE WHO NEEDS TO CALM DOWN SHUT THE FRIK UP NOBODY ASKED YOU TUDYPIE MORE LIKE TURDYPIE
@bobbybotbop
@bobbybotbop 4 жыл бұрын
@Tristan Basri no one asked you
@sachinahuja3894
@sachinahuja3894 5 жыл бұрын
plz help me to make cpu based player game like ludo player vs cpu
@littlegreen4899
@littlegreen4899 3 жыл бұрын
Oh come on I just changed from 2018vee
@LeoKing0
@LeoKing0 5 жыл бұрын
your not explaining good enough for beginners especially the beginning
How make SWIPE LEVEL MENU in Unity?
13:33
Rehope Games
Рет қаралды 27 М.
Unity Simple Level Select Menu Tutorial in 15 Minutes
17:57
Kee Gamedev
Рет қаралды 14 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Make a level select screen in Unity (With ANIMATED buttons)
11:49
MoreBBlakeyyy
Рет қаралды 2,9 М.
Making UI That Looks Good In Unity
18:06
Game Dev Guide
Рет қаралды 704 М.
Level Selection (UNLOCK Levels & SAVING Data)
22:52
Beaver Joe
Рет қаралды 37 М.
Swiping Pages in Unity
9:43
Press Start
Рет қаралды 58 М.
Unity - How to Keep Score
7:19
Press Start
Рет қаралды 36 М.
PAUSE MENU in Unity
12:13
Brackeys
Рет қаралды 1 МЛН