简体   繁体   English

游戏打开时如何打开任何特定场景

[英]How to open any specific scene when the game opens

My question is that, how can I set any scene in unity as first scene (means it will open first when the game starts).我的问题是,如何将任何场景统一设置为第一个场景(意味着它会在游戏开始时首先打开)。

As I started making my game in unity, instead of making main menu I made LEVEL 1, and as a result when the game opens it directly starts the game by showing level 1.当我开始统一制作我的游戏时,我没有制作主菜单,而是制作了 LEVEL 1,结果当游戏打开时,它直接通过显示 1 级开始游戏。

So how can I set my main menu as the first scene那么如何将我的主菜单设置为第一个场景

To further upon Retired Ninja's comment, to set a specific default scene when the game opens, you need to set the ordering of the scenes so that the one you want to start with is first, see the picture below:为了进一步了解 Retired Ninja 的评论,要在游戏打开时设置特定的默认场景,您需要设置场景的顺序,以便您想要开始的场景位于第一个,请参见下图:

在此处输入图像描述

The main menu screen comes first in the list of scenes, this means it will run on startup.主菜单屏幕在场景列表中排在第一位,这意味着它将在启动时运行。

More details here where it has been answered on the Unity Forums:在 Unity 论坛上回答的更多详细信息:

https://answers.unity.com/questions/44953/set-first-scene.html https://answers.unity.com/questions/44953/set-first-scene.html

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

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