Is there a way to get the scenes in the project while in an Editor Script.
I would imagine there would be a way to get them from AssetDatabase or something, but I cannot find anything on it.
In the end, I could just get the names of everything in a particular folder, and assume that the folder will always be only scenes, but that would be pretty poor coding.
The docs mention something about an EditorBuildSettings.scenes array, using an EditorBuildSettingsScene class, which is not further explained. Maybe the various answers here will help you: Accessing BuildSettings from BuildSettings.asset - Questions & Answers - Unity Discussions
If you’re lucky, you’ll get directly an object reference to your scene asset from that. Otherwise, if you get the path, use AssetDatabase.LoadMainAssetAtPath. If you get a GUID, use AssetDatabase.GUIDToAssetPath to get a path, and so on.
var scenesGUIDs = AssetDatabase.FindAssets("t:Scene");
var scenesPaths = scenesGUIDs.Select(AssetDatabase.GUIDToAssetPath);