private void OnEnable() { Instance = this; GetSelected(); SceneView.onSceneGUIDelegate += OnSceneGUI; }
public override void OnInspectorGUI() { EditorGUILayout.Space(); if (GUILayout.Button(new GUIContent("Edit probes", EditorGUIUtility.IconContent("LightProbeProxyVolume Gizmo").image), GUILayout.MaxWidth(125f), GUILayout.MaxHeight(30f))) { selected = script; AmbientProbesEditor.OpenWindow(); } EditorGUILayout.Space(); base.OnInspectorGUI(); }