SceneManager.LoadScene / SceneManager.LoadSceneAsync
[问题]使用叠加模式,环境光之类的这些场景相关的信息,使用的是谁的?
多场景可能会导致的问题:
在不同的场景之间移动GameObject:
if (wwiseImports.Length == 1) { Selection.activeGameObject = wwiseImports[0].gameObject; wwiseImports[0].name = "WwiseImporter"; var mainScene = SceneManager.GetActiveScene(); for (int i = 0; i < SceneManager.sceneCount; i += 1) { var Scene = SceneManager.GetSceneAt(i); if (Scene.name.ToLower() == mainScene.name.ToLower() + "_editor") { SceneManager.MoveGameObjectToScene(wwiseImports[0].gameObject, Scene); break; } } }