Unity Dota样式加载屏幕 [英] Unity Dota style loading screen

查看:108
本文介绍了Unity Dota样式加载屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在创建3v3多人游戏,在玩游戏之前,我一直处于重要的位置. 我想知道您将如何创建Dota 2样式的加载屏幕以将角色加载到游戏中(下图).
创建用户界面不是问题.问题在于动画使其看上去很整洁,同时还使它实际使用进度条或其他东西加载游戏(地形/游戏对象/等).
我用这个加载水平


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样式加载屏幕示例:

Dota 2 style loading screen example:

推荐答案

我认为这是用于因为据我所知,《 Dota 2》中大约有100位英雄,而其中只有10位会被挑选.因此,此加载屏幕中的图像将根据播放器的输入而更改.因此,您应该创建可编写脚本的对象.然后,您可以在运行时更改图像(英雄),也可以为其修改/添加昵称.综上所述,您的场景中将有10个(在Dota中为6个,您的情况下)可编写脚本的对象,但是只有在玩家选择了英雄之后,您才能修改图像和昵称.

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.

这是Brackeys的教程,非常适合您的情况.祝你好运!

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

这篇关于Unity Dota样式加载屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆