No video

Unity Loading Screen - Easy Tutorial

  Рет қаралды 77,374

Solo Game Dev

Solo Game Dev

Күн бұрын

Learn how to design and implement a loading screen in Unity. Loading your scenes asynchronously can help reduce the time users have to wait between scenes. Enjoy watching.
❤️Join My Channel to Support Me: / sologamedev
💙Subscribe to My Channel: www.youtube.com...
●For Unity Inventory System - Easy Tutorial (2022): • Unity Inventory System...
●For Unity Multi-Language System(Localization): • Unity Multi-Language S...
●For Unity Firebase Database Integration - Easy Tutorial (2021): • Unity Firebase Databas...
Hi from Solo Game Dev. I am a game developer. On this channel, I create easy to learn game development tutorials and develop games with Unity and the other game engines. These tutorials and games also include multiplayer games. In general, I create content related to game development, game design and games.
I also actively respond to comments and feedback so don't be afraid to let me know what you think, or recommend or request a specific video!
Follow and enjoy unique content!
You can follow me on Social Media and send your questions and requests from there!
TWITTER: / sologame_dev
INSTAGRAM: / solo.game.dev
#UnityLoadingScreen #UnityLoading

Пікірлер: 51
@alexcaromunoz
@alexcaromunoz 9 ай бұрын
Awesome tutorial, his was exactly what I needed to start using this loading screen in my game. Thanks for this great content
@Nevermore101
@Nevermore101 3 ай бұрын
Really useful dude! I'm loading scenes async currently without a nice loading image and my game looks rough. This tutorial will help make it look better - thanks!
@apokun165
@apokun165 Жыл бұрын
Bu aralar çok denk geliyorum videolarına emeğine sağlık. Çok faydalanıyorum. Teşekkürlerrr. Anlatımlar da çok yerinde,kısa açıklayıcı oluyor genel olarak.
@SoloGameDev
@SoloGameDev Жыл бұрын
Teşekkürler güzel yorumun için 😊
@ygorishikawa285
@ygorishikawa285 2 жыл бұрын
wow, thanks dude, u help me so much, great tutorial :)
@YapayZeka-zn9kn
@YapayZeka-zn9kn 2 жыл бұрын
Sade, yalın ve açıklayıcı bir anlatım.
@cristiangenete8734
@cristiangenete8734 Жыл бұрын
Awesome tutorial!
@LouieJuera
@LouieJuera Жыл бұрын
Good! Helped me with my project.
@Klarified01
@Klarified01 Жыл бұрын
Güzel video her şeyi kısaca anlatmışsınız teşekkürler. Tek sorunum yazı yazarken çıkan fake tuş sesleri. Onun yerine sessiz olsa ya da gerçek klavye sesini kaydedip koysanız daha iyi olur bence.
@Ghost_Vengeance
@Ghost_Vengeance 16 минут бұрын
Brother, If I want to add it immediately after Splash screen of unity logo can i do it? because when loading my first scene my game lags, so i want to Put loading screen first, I tried to implement using the first empty scene with loading screen but still when it loads the first scene (I mean the empty scene) it lags.
@coolsachin2737
@coolsachin2737 2 жыл бұрын
Awesome Tutorial. Thanks
@97wowplayer
@97wowplayer 6 ай бұрын
thank you so much brother!
@yusufum_
@yusufum_ 7 ай бұрын
nice short useful thanks sağol bro
@derrieseneinlauf6781
@derrieseneinlauf6781 Жыл бұрын
Really Cool 😀
@itsJDarts
@itsJDarts 2 ай бұрын
Good work
@SoloGameDev
@SoloGameDev 2 ай бұрын
Thanks :)
@khaastoon378
@khaastoon378 2 жыл бұрын
Very nice tutorial
@augustlewen2149
@augustlewen2149 6 ай бұрын
For me it takes like 2-3 seconds to load my scene, but the progress bar is just full right away. I have a Debug.Log(operation.progress); in the while loop that just prints 0, and 0.9 in the same frame, but this printing happens after the scene is loaded. What is happening, why is my bar full right away? Why does it take so long to load but the progress seems to be instant?
@OliverContreras
@OliverContreras Жыл бұрын
Great Tutorial! very useful. How to show the loading percent?
@justfernandomalpica
@justfernandomalpica Жыл бұрын
You can use the fillAmount of the Image! After or before apply the value of progressValue to the LoadingBarFill, you can save the value in a string variable and set it in a text object on the UI.
@thisisarbaz
@thisisarbaz Жыл бұрын
you can make the text variable and reference it, and give write this code in the while loop: myText.text = $"{progressValue * 100:F2}%"
@emanuelsomogyiofficial
@emanuelsomogyiofficial 9 ай бұрын
Si tengo un problema,el unity detecta que "UI" no existe en el namespace UnityEngine y el nombre imagen no fue encontrado ¿Deberia descargar alguna extension o algo?
@kingl.a.c
@kingl.a.c 2 жыл бұрын
good
@arteagasantelizluisedgardo4585
@arteagasantelizluisedgardo4585 Жыл бұрын
Help I'm not sure why the loading screen goes too fast to the other scene and I can't see the loading bar.
@SoloGameDev
@SoloGameDev Жыл бұрын
If there are few objects in your scene, it loads fast.
@WRDMuzic
@WRDMuzic 2 жыл бұрын
Teşekkürler :)
@NitrowutYT
@NitrowutYT 9 ай бұрын
Where I can donwload the canvas?
@Garfield_Minecraft
@Garfield_Minecraft Жыл бұрын
wow so easy and i have to convert that to visual script because text based programming is hard for me to read i'm programmer i can write in C# but yes my typing speed is slow
@salehirfan9466
@salehirfan9466 Жыл бұрын
How to increase loading time means bars animation
@mcjgenius
@mcjgenius 2 жыл бұрын
nice
@kamuransonecek607
@kamuransonecek607 Жыл бұрын
Hi Mate, why did you divide it by 0.9? Is there any special reason
@muhammadgulzaib7567
@muhammadgulzaib7567 Жыл бұрын
I am not sure about it but I think it's bcz , that the loading take .9 percent to change the scene out of 1.
@nutoriousmusic4910
@nutoriousmusic4910 Жыл бұрын
Is there a way to slow down the loading to make it machine independent? It loads every time without me seeing the loading screen for more than a second
@tony_almanzor9760
@tony_almanzor9760 Жыл бұрын
It depends on what you are trying to achieve. If you want your users to se the loading screen for at least 1 or 2 seconds after the scene loaded just add a: yield return new WaitForSeconds(seconds); And then a: loadingScreen.SetActive(false); All of this after the while loop in the coroutine. Take in mind that the canvas GameObject of the loading screen gets deleted when the new scene loads so use a: DontDestroyOnLoad(loadingScreen); and DontDestroyOnLoad(this.gameObject); at the start of the coroutine. Then use a Destroy(loadingScreen); and Destroy(this.gameObject) after the: loadingScreen.SetActive(false) you added before
@csgaming7137
@csgaming7137 2 ай бұрын
@@tony_almanzor9760 Wow thank you so much! Also, you have to make sure the object that DontDestroyOnLoad is not a child so it can actually be called.
@dcry1003
@dcry1003 Жыл бұрын
does this work with anything from a scene with alot of mesh renderer to 2d games for mobile?
@SoloGameDev
@SoloGameDev Жыл бұрын
Yes it works.
@dcry1003
@dcry1003 Жыл бұрын
@@SoloGameDev thank you! and if its not to late to ask, why is it giving me a CS0642 warning: *Possible mistaken empty statement* in line 24?
@SantaGamerYoutube
@SantaGamerYoutube Жыл бұрын
@@dcry1003 show your code?
@lagloyuncu7888
@lagloyuncu7888 2 жыл бұрын
daha detaylısı nasıl yapılır mesela oyuna girerken yüklenen veya kontrol edilen dosyaları ve güncelleme yükleme yaparkenki ilerleme fln daha gerçekçisi nasıl yapılır. loading screen yazınca tek bukadar basiti çıkıyorda xd
@thefauron742
@thefauron742 2 жыл бұрын
Why even if my scene still loading i have full slider?
@SoloGameDev
@SoloGameDev 2 жыл бұрын
You probably got the calculation part wrong.
@thefauron742
@thefauron742 2 жыл бұрын
@@SoloGameDev How to fix it
@creationsmaxo
@creationsmaxo 2 жыл бұрын
@@thefauron742 The answer to that, if you did write the proper read on the Operation.progress, could varies depending on what's in your previous and next scenes as well as how your code refers to the UI element. For examples... ...if you scenes are huge and complex, the switch of scene using LoadSceneAsync process can take a lot longer than what is returned by the .progress as it doesn't count the time it takes for the Garbage Collector (deletion of unused memory blocks) to clean up the memory buffer. So while the next scene might be loaded into the memory, the old scene data might takes time to be "digested" and that's why there might be a hold-up in-between the time when the .progress makes the slider full and when the next scene actually appears on the screen. If you want the player to be able to play while you stealthy unload a previous level (instead of just waiting in limbo as the old scene is digested by the Garbage Collector) with scene heavy in data, you'll have to think of a custom way using the LoadSceneMode.Additive mode so that you add and remove in your current scene instead of switching scene (which requires a memory clean-up every time.) Side Note: Remember that changing scene in the Editor is different than changing scene in a build as Unity's Editor uses a sort of sandbox environment, but can't avoid adding a lot of data onto the actual scene data because it has to update the Inspectors and Hierarchy and other Editor tools live. ...if the scene does load and you can see the switch of scene, but the Loading screen remain full, that's another kind of problem which should be related to how you set up the Loading screen. For example, if the loading screen is set on a DontDestroyOnLoad() game object, you'll have to set the loading screen to Inactive once the loading is done. This can be done by adding a "LoadingScreen.SetActive(false)" in the code after the "while()" in the code above. (That requires that the LoadingScreen Object is referred in persistent way. There are various ways of doing it.)
@JarsotakethatL
@JarsotakethatL Жыл бұрын
i dont have the canvas , you dont explain that part
@SoloGameDev
@SoloGameDev Жыл бұрын
When you create an image, the canvas is created automatically. You can think of Canvas as the parent of images.
@irondolphin1559
@irondolphin1559 Жыл бұрын
Just make one?
@anneclarisselopez2666
@anneclarisselopez2666 Жыл бұрын
@@SoloGameDev the loading image?
@levanthao8031
@levanthao8031 2 жыл бұрын
Can I have the game assets, please?
@arnovanzyl5976
@arnovanzyl5976 Жыл бұрын
Doesn't explain game object setup
6 ай бұрын
Agree. Would be nice to see not only how to code but how to prepare progress bar
@ectsy
@ectsy 5 ай бұрын
Did you not watch the first 30 seconds of the video?
Designing a Loading Screen in Unity
11:57
Game Dev Guide
Рет қаралды 179 М.
Unity Inventory System - Easy Tutorial
16:35
Solo Game Dev
Рет қаралды 192 М.
Мы сделали гигантские сухарики!  #большаяеда
00:44
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 21 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 26 МЛН
Unity NavMesh Tutorial - Pathfinding | Easy Tutorial
4:08
Solo Game Dev
Рет қаралды 16 М.
Como Hacer una Barra de Carga (Loading Bar) Tutorial Unity
7:57
Tutoriales Dingo
Рет қаралды 10 М.
로딩 화면 구현하기(로딩 UI 방식) | 유니티
11:03
베르의 게임 개발 유튜브
Рет қаралды 11 М.
Загрузочный экран и смена сцен в Unity 3D
20:59
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4 МЛН
How to make AWESOME Scene Transitions in Unity!
19:45
Brackeys
Рет қаралды 936 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,9 МЛН
Unity Loading Screen Tutorial | How To Create A Loading Bar In Unity
32:36
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 20 М.
Мы сделали гигантские сухарики!  #большаяеда
00:44