/// <summary>
        /// Returns slide list for builds settings.
        /// </summary>
        /// <param name="deck">The Deck.</param>
        /// <param name="playmode">Playmode filter.</param>
        /// <param name="visibility">Visibility filter.</param>
        /// <returns>A list of scenes.</returns>
        public static List <EditorBuildSettingsScene> GetBuildScenes(SlideDeck deck, SlideDeck.PlayModeType playmode, SlideDeck.VisibilityType visibility)
        {
            var nonDeckScenes = SceneUtils.GetNonDeckScenes(deck);

            var slides = deck.GetSlides(playmode, visibility);
            var scenes = new List <EditorBuildSettingsScene>(slides.Count + nonDeckScenes.Count);

            foreach (var slide in slides)
            {
                var path = slide.ScenePath;
                if (string.IsNullOrEmpty(path))
                {
                    continue;
                }
                scenes.Add(new EditorBuildSettingsScene(path, true));
            }

            scenes.AddRange(nonDeckScenes);
            return(scenes);
        }