Exemple #1
0
        private void OnEnable()
        {
            Instance = this;

            GetSelected();
            SceneView.onSceneGUIDelegate += OnSceneGUI;
        }
Exemple #2
0
        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();
        }