public static void BeginGeneration() { generating = true; fileChanged = false; string currentPath = Application.dataPath; int lastIndex = currentPath.LastIndexOf('/'); currentPath = currentPath.Remove(lastIndex, currentPath.Length - lastIndex); SteamVR_Input_EditorWindow.SetProgressBarText("Beginning generation...", 0); GenerationStep_CreateActionSetClasses(); GenerationStep_CreateHelperClasses(); GenerationStep_CreateInitClass(); GenerationStep_CreateAssemblyDefinition(); DeleteUnusedScripts(); if (fileChanged) { EditorPrefs.SetBool(generationNeedsReloadKey, true); } AssetDatabase.Refresh(); SteamVR_Input_EditorWindow.ClearProgressBar(); generating = false; }
public static void BeginGeneration() { generating = true; fileChanged = false; SteamVR_Input_EditorWindow.SetProgressBarText("Beginning generation...", 0); GenerationStep_CreateActionSetClasses(); GenerationStep_CreateHelperClasses(); GenerationStep_CreateInitClass(); GenerationStep_CreateAssemblyDefinition(); DeleteUnusedScripts(); if (fileChanged) { EditorPrefs.SetBool(generationNeedsReloadKey, true); } AssetDatabase.Refresh(); SteamVR_Input_EditorWindow.ClearProgressBar(); generating = false; }