Example #1
0
 private void InstallPackageButtonGUI(string packageName)
 {
     if (GUILayout.Button("Install", GUILayout.Width(100)))
     {
         ExtensionManager.InstallShaderExtension(packageName);
         ExtensionManager.UpdateShaderResources();
         CacheExtensions();
     }
 }
Example #2
0
 private void RemovePackageButtonGUI(string packageName)
 {
     if (GUILayout.Button("Remove", GUILayout.Width(100)))
     {
         Target.RemoveAllShaders();
         ExtensionManager.RemoveShaderExtension(packageName);
         ExtensionManager.UpdateShaderResources();
         CacheExtensions();
     }
 }
Example #3
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            showManager = EditorGUILayout.Foldout(showManager, "Extensions", true);
            if (showManager)
            {
                ManagerGUI();
            }

            EditorGUILayout.Space();

            if (GUILayout.Button("Update shader resources"))
            {
                ExtensionManager.UpdateShaderResources();
            }
        }