Beispiel #1
0
        protected override void Rebuild()
        {
            base.Rebuild();
            var recipeBase = target as UMARecipeBase;

            if (PowerToolsIntegration.HasPowerTools() && PowerToolsIntegration.HasPreview(recipeBase))
            {
                _needsUpdate = true;
            }
        }
Beispiel #2
0
 private void PowerToolsGUI()
 {
     if (PowerToolsIntegration.HasPowerTools())
     {
         GUILayout.BeginHorizontal();
         var recipeBase = target as UMARecipeBase;
         if (PowerToolsIntegration.HasPreview(recipeBase))
         {
             if (GUILayout.Button("Hide"))
             {
                 PowerToolsIntegration.Hide(recipeBase);
             }
             if (GUILayout.Button("Create Prefab"))
             {
                 //PowerToolsIntegration.CreatePrefab(recipeBase);
             }
             if (GUILayout.Button("Hide All"))
             {
                 PowerToolsIntegration.HideAll();
             }
         }
         else
         {
             if (GUILayout.Button("Show"))
             {
                 PowerToolsIntegration.Show(recipeBase);
             }
             if (GUILayout.Button("Create Prefab"))
             {
                 //PowerToolsIntegration.CreatePrefab(recipeBase);
             }
             if (GUILayout.Button("Hide All"))
             {
                 PowerToolsIntegration.HideAll();
             }
         }
         GUILayout.EndHorizontal();
     }
 }