Created
July 7, 2020 13:58
-
-
Save ErnSur/b2f2a786ca0bd88aaac3cd3db432e085 to your computer and use it in GitHub Desktop.
Get Unity Build Scenes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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