简体   繁体   English

在Unity中使用启动画面时是否可以发出声音?

[英]Is it possible to make a sound when using a splash screen in Unity?

I am a beginner in game making. 我是游戏制作的初学者。

Is it possible to make a sound when splash screen? 启动屏幕时是否可以发出声音? Do you know the game "Clash Royale"or "Clash Of Clans" that Supercell made? 您知道Supercell制作的游戏“ Clash Royale”或“ Clash Of Clans”吗? When the game is opened, it makes sounds. 打开游戏后,它会发出声音。 How can I do this? 我怎样才能做到这一点? Could you teach me? 你能教我吗?

*I am also a beginner in English, so I think that there is a mistake in English.← *我也是英语初学者,所以我认为英语有误。←

No. Only images can be added to Unity's splash screen system. 不能。只能将图像添加到Unity的初始屏幕系统中。

You will have to do it another way. 您将不得不采用另一种方式。 Create an intro scene and make it to be the first scene to load from the Build Settings. 创建一个介绍性场景,使其成为从“构建设置”中加载的第一个场景。 Use Unity's AudioSource API to load and play the sound when this into scene loads. 使用Unity的AudioSource API加载并在场景加载时播放声音。 When the sound is done playing, load your game main scene. 声音播放完毕后,加载游戏主场景。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM