Skip to content

Instantly share code, notes, and snippets.

@ErnSur
Created July 7, 2020 13:58
Show Gist options
  • Save ErnSur/b2f2a786ca0bd88aaac3cd3db432e085 to your computer and use it in GitHub Desktop.
Save ErnSur/b2f2a786ca0bd88aaac3cd3db432e085 to your computer and use it in GitHub Desktop.
Get Unity Build Scenes
public static string[] GetScenes() =>
(
from scene in EditorBuildSettings.scenes
where scene.enabled
select scene.path
).ToArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment