public void DrawBindingFiles() { if (!VarwinUnitySettings.CheckSteamVRBindings()) { EditorGUILayout.Space(); GUILayout.Label("SteamVR binding files:"); var buttonStyle = new GUIStyle(EditorStyles.miniButtonLeft); if (GUILayout.Button($"Copy bindings files", buttonStyle)) { CopyAllBindings(); } } }
static void Update() { if (CheckIsClient()) { EditorApplication.update -= Update; return; } bool show = forceShow || VarwinUnitySettings.Options.Any(x => x.IsNeedToDraw); bool layersShow = VarwinUnitySettings.Layers.Any(x => !string.Equals(VarwinUnitySettings.GetLayer(x.Key), x.Value)); bool tagsShow = !VarwinUnitySettings.TagsAreValid(); bool bindings = !VarwinUnitySettings.CheckSteamVRBindings(); if (show || layersShow || tagsShow || bindings) { ShowWindow(); } EditorApplication.update -= Update; }