Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected static string[] GetEnabledScenePaths()
- {
- if (EditorBuildSettings.scenes.Length > 0)
- {
- int i = 0;
- foreach (EditorBuildSettingsScene tScene in EditorBuildSettings.scenes)
- {
- if (tScene.enabled)
- {
- i++;
- }
- }
- if (i > 0)
- {
- string[] levels = new string[i];
- int idx = 0;
- foreach (EditorBuildSettingsScene tScene in EditorBuildSettings.scenes)
- {
- if (tScene.enabled)
- {
- levels[idx++] = tScene.path;
- }
- }
- return levels;
- }
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement