protected override void Rebuild() { base.Rebuild(); var recipeBase = target as UMARecipeBase; if (PowerToolsIntegration.HasPowerTools() && PowerToolsIntegration.HasPreview(recipeBase)) { _needsUpdate = true; } }
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(); } }