private void OnGUI() { ProSurfaceSnap surfaceSnap = ProSurfaceSnap.Get; if (surfaceSnap == null) { return; } _scrollPos = EditorGUILayout.BeginScrollView(_scrollPos); surfaceSnap.GrabHotkeys.RenderEditorGUI(surfaceSnap); EditorGUILayout.EndScrollView(); }
private void OnEnable() { ProSurfaceSnap surfaceSnap = ProSurfaceSnap.Get; if (surfaceSnap == null) { return; } surfaceSnap.GrabSettings.ToggleVisibility = true; surfaceSnap.GrabSettings.VisibilityToggleLabel = "Settings"; surfaceSnap.GrabLookAndFeel.ToggleVisibility = true; surfaceSnap.GrabLookAndFeel.VisibilityToggleLabel = "Look and feel"; EditorApplication.modifierKeysChanged -= Repaint; EditorApplication.modifierKeysChanged += Repaint; }