【发布时间】:2021-03-24 14:42:25
【问题描述】:
有谁知道错误在哪里?我一直在寻找各种解决方案,但没有得到我想要的
public static void LoadScene(int levelNum)
{
Application.backgroundLoadingPriority = ThreadPriority.High;
sceneToLoad = levelNum;
SceneManager.LoadScene(loadingSceneIndex);
}
错误:Assets\Script AR\LoadingScreenManager.cs(35,32):错误 CS0103:当前上下文中不存在名称“loadingSceneIndex”
这个还有一个问题
private void StartOperation(int levelNum)
{
Application.backgroundLoadingPriority = loadThreadPriority;
operation = SceneManager.LoadSceneAsync(levelNum, loadSceneMode);
if (loadSceneMode = LoadSceneMode.Single)
operation.allowSceneActivation = false;
}
错误:Assets\Script AR\LoadingScreenManager.cs(91,13):错误 CS0029:无法将类型“UnityEngine.SceneManagement.LoadSceneMode”隐式转换为“bool”
【问题讨论】:
-
你是否检查过你是否在构建设置中添加了你的场景->构建中的场景?
-
貌似不行,怎么办?
-
转到文件构建设置并在那里添加您的场景
-
有教程吗?
-
点击添加打开的场景
标签: c# unity3d augmented-reality vuforia