private void DisplayViveAppPathSettings() { UnityGUI.Space(); var buttonGui = new GUIOptions { style = EditorStyles.miniButton, maxWidth = 145 }; if (UnityGUI.Button("Set Vive application paths", buttonGui)) { var yes = EditorUtility.DisplayDialog("LNE - Message", "Do you use the HTC Connection Utility?", "Yes", "No"); if (yes) { EditorUtility.DisplayDialog("LNE - Message", "Locate the HTC Connection Utility.", "Ok"); Settings.WirelessPath = EditorUtility.OpenFilePanel("Locate the HTC Connection Utility", Settings.WirelessPath, "exe"); } EditorUtility.DisplayDialog("LNE - Message", "Locate Steam.", "Ok"); Settings.SteamPath = EditorUtility.OpenFilePanel("Locate Steam", Settings.SteamPath, "exe"); EditorUtility.DisplayDialog("LNE - Message", "Locate Steam VR.", "Ok"); Settings.SteamVRPath = EditorUtility.OpenFilePanel("Locate Steam VR", Settings.SteamVRPath, "url"); yes = EditorUtility.DisplayDialog("LNE - Message", "Do you use the SRanipal runtime?", "Yes", "No"); if (yes) { EditorUtility.DisplayDialog("LNE - Message", "Locate the SRanipal runtime.", "Ok"); Settings.SRanipalPath = EditorUtility.OpenFilePanel("Locate SRanipal runtime", Settings.SRanipalPath, "lnk"); } } var labelGui = new GUIOptions { style = EditorStyles.label, textColour = new Color(.2f, .2f, .2f), textSize = 10 }; UnityGUI.IndentLevel--; UnityGUI.Label(Settings.WirelessPath != "" ? Settings.WirelessPath : "<not set>", labelGui); UnityGUI.Label(Settings.SteamPath != "" ? Settings.SteamPath : "<not set>", labelGui); UnityGUI.Label(Settings.SteamVRPath != "" ? Settings.SteamVRPath : "<not set>", labelGui); UnityGUI.Label(Settings.SRanipalPath != "" ? Settings.SRanipalPath : "<not set>", labelGui); UnityGUI.IndentLevel++; }
private void DisplayEyeTrackingSettings() { UnityGUI.IndentLevel--; UnityGUI.Label("Eye Tracking SDKs"); UnityGUI.IndentLevel++; Settings.FoveSupport = UnityGUI.Toggle("FOVE", Settings.FoveSupport); if (UnityGUI.OnMouseHoverPrevious()) { helpMessage = "Enable FOVE eye tracking. Will produce errors if the FOVE Unity Package has not been imported."; } Settings.ViveProEyeSupport = UnityGUI.Toggle("Vive Pro Eye", Settings.ViveProEyeSupport); if (UnityGUI.OnMouseHoverPrevious()) { helpMessage = "Enable Vive Pro Eye eye tracking. Will produce errors if the SRanipal Unity Package has not been imported."; } UnityGUI.Space(); }