private void DrawCollectionsGUI() { string prefKey = EditorCommon.GetProjectRelatedEditorPrefsKey("foldout", "assetexplorercollections", instance.GetInstanceID().ToString()); bool expanded = EditorPrefs.GetBool(prefKey, true); expanded = EditorGUILayout.Foldout(expanded, "Collections"); EditorPrefs.SetBool(prefKey, expanded); if (expanded) { Rect r; r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Other Assets From Pinwheel")) { GAssetExplorer.ShowPinwheelAssets(); } r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Stylized Vegetation")) { GAssetExplorer.ShowStylizedVegetationLink(); } r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Stylized Rock & Props")) { GAssetExplorer.ShowStylizedRockPropsLink(); } r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Stylized Water")) { GAssetExplorer.ShowStylizedWaterLink(); } r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Stylized Sky & Ambient")) { GAssetExplorer.ShowStylizedSkyAmbientLink(); } r = EditorGUILayout.GetControlRect(); if (GUI.Button(r, "Stylized Character")) { GAssetExplorer.ShowStylizedCharacterLink(); } EditorGUILayout.Space(); } }
public void OnEnable() { instance = target as GAssetExplorer; }