private void DrawFavoriteButton(SceneData sceneAsset) { Texture buttonTexture = Favorites.IsSceneFavorite(sceneAsset) ? SceneBrowserResources.GetFullStarTexture() : SceneBrowserResources.GetEmptyStarTexture(); bool clickOnFavoriteButton = GUILayout.Button(new GUIContent(buttonTexture), GUILayout.Height(EditorGUIUtility.singleLineHeight), GUILayout.Width(EditorGUIUtility.singleLineHeight + 15)); if (clickOnFavoriteButton == true) { Favorites.ToggleFavorite(sceneAsset); } }
private SceneData[] GetOnlyFavoritesScenes() { return(_projectScenes.Where(x => Favorites.IsSceneFavorite(x) == true).ToArray()); }
private SceneData[] GetNotFavoritesScenes() { return(_projectScenes.Where(x => Favorites.IsSceneFavorite(x) == false).ToArray()); }