private bool CopyOrClose() { bool copy = UnityEditor.EditorUtility.DisplayDialog("Copy Examples", "It looks like your project is missing an actions.json. Would you like to use the example file?", "Yes", "No"); if (copy) { SteamVR_CopyExampleInputFiles.CopyFiles(true); bool initializeSuccess = SteamVR_Input.InitializeFile(); return(initializeSuccess); } return(false); }
private bool CopyOrClose() { bool copyExamples = EditorUtility.DisplayDialog("Copy Examples", "It looks like your project is missing an actions.json. Would you like to use the example files?", "Yes", "No"); if (copyExamples) { SteamVR_CopyExampleInputFiles.CopyFiles(true); Thread.Sleep(1000); bool initializeSuccess = SteamVR_Input.InitializeFile(); return(initializeSuccess); } else { SteamVR_Input.CreateEmptyActionsFile(); Thread.Sleep(1000); bool initializeSuccess = SteamVR_Input.InitializeFile(); return(initializeSuccess); } //Debug.LogErrorFormat("<b>[SteamVR]</b> Actions file does not exist in project root: {0}. You'll need to create one for SteamVR to work.", SteamVR_Input.actionsFilePath); }