private void GetSceneInfo() { m_allScenesInProject = AH_Utils.GetAllSceneNames().ToList <string>(); m_allScenesInBuildSettings = AH_Utils.GetAllSceneNamesInBuild().ToList <string>(); m_allEnabledScenesInBuildSettings = AH_Utils.GetEnabledSceneNamesInBuild().ToList <string>(); m_allDisabledScenesInBuildSettings = SubtractSceneArrays(m_allScenesInBuildSettings, m_allEnabledScenesInBuildSettings); m_allUnreferencedScenes = SubtractSceneArrays(m_allScenesInProject, m_allScenesInBuildSettings); }
internal void AddSceneDependencies() { List <string> enabledScenes = AH_Utils.GetEnabledSceneNamesInBuild().ToList <string>(); foreach (string path in enabledScenes) { string[] sceneDependencies = AssetDatabase.GetDependencies(path, true); foreach (var assetPath in sceneDependencies) { AddBuildDependency(path, assetPath); } } }