Unity Dota style loading screen

孤街醉人 提交于 2019-12-25 00:30:15

问题



I'm creating a 3v3 multiplayer game and I'm stuck on an important part before the gameplay comes in. I was wondering how you would approach creating a Dota 2 style loading screen for loading characters into the game (Picture below).
Creating the UI isn't the problem. The problem is animating it to look clean while also having it actually load the game (terrain/gameobjects/etc) with a progress bar or something.
I load the level with this

    PhotonNetwork.LoadLevel('Game');

Then a gameobject spawns each player with

    PhotonNetwork.Instantiate('....');

This works pretty well with nothing in the scene other than a plane to walk on. Now I just need to create the loading screen BEFORE the character loads while actually loading the terrain/objects/etc.

If anyone could point me in the right direction I would really appreciate it.
Thank you

Dota 2 style loading screen example:


回答1:


I think this is a perfect case to use for Scriptable Objects in Unity.

Because as far as i remember there are around 100 heroes in Dota 2 and only 10 of them will be picked. So the images in this loading screen would change based on player input. Therefore, you should create scriptable objects. Then you can change the image(hero) also modify/add nick names to it in Run time. So to sum up you will have 10(in Dota but 6 is your case) scriptable object in your scene but you will only modify the images and nicknames after player selects the heroes.

Another benefit would be since they are objects you can easily animate them move up and down adjust however you want.

Here is a tutorial from Brackeys that is perfect for your case. Good luck!



来源:https://stackoverflow.com/questions/55528517/unity-dota-style-loading-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!