DrawGraph() public method

public DrawGraph ( ) : void
return void
Example #1
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            if (!serializedObject.isEditingMultipleObjects)
            {
                EditorGUILayout.Space();
                Bloom b = (Bloom)target;
                _graph.Prepare(b);
                _graph.DrawGraph();
                EditorGUILayout.Space();

                base.OnInspectorGUI();

                int d = EditorGUILayout.Popup("开发模式:", b.debugMode, options);
                if (d != b.debugMode)
                {
                    b.debugMode = d;
                    EditorUtility.SetDirty(target);
                }
            }
            else
            {
                base.OnInspectorGUI();
            }



            serializedObject.ApplyModifiedProperties();
        }
Example #2
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            if (!serializedObject.isEditingMultipleObjects)
            {
                EditorGUILayout.Space();
                _graph.Prepare((Bloom)target);
                _graph.DrawGraph();
                EditorGUILayout.Space();
            }

            EditorGUILayout.PropertyField(_threshold, _textThreshold);
            EditorGUILayout.PropertyField(_softKnee);
            EditorGUILayout.PropertyField(_intensity);
            EditorGUILayout.PropertyField(_radius);
            EditorGUILayout.PropertyField(_highQuality);
            EditorGUILayout.PropertyField(_antiFlicker);
            EditorGUILayout.PropertyField(_formAlphaChannel);

#if UNITY_EDITOR
            EditorGUILayout.PropertyField(developModel);
            //developModel = serializedObject.FindProperty("developModel");
#endif

            serializedObject.ApplyModifiedProperties();
        }
Example #3
0
        public override void OnInspectorGUI()
        {
            Bloom bloom = (Bloom)target;

            serializedObject.Update();

            if (!serializedObject.isEditingMultipleObjects)
            {
                EditorGUILayout.Space();
                _graph.Prepare(bloom);
                _graph.DrawGraph();
                EditorGUILayout.Space();
            }

            EditorGUILayout.PropertyField(_Lock, _textLock);
            if (!bloom.lockParameters)
            {
                EditorGUILayout.PropertyField(_threshold, _textThreshold);
                EditorGUILayout.PropertyField(_softKnee, _textSoftKnee);
                EditorGUILayout.PropertyField(_intensity, _textIntensity);
                EditorGUILayout.PropertyField(_radius, _textRadius);
                //EditorGUILayout.PropertyField(_highQuality);
                EditorGUILayout.PropertyField(_antiFlicker, _textAntiFlicker);

                EditorGUILayout.PropertyField(ex, _textEX, null);
                EditorGUILayout.PropertyField(ex2, _textEX2, null);
                EditorGUILayout.PropertyField(_SoftFocus, _textSoftFocus, null);
            }
            serializedObject.ApplyModifiedProperties();
        }
Example #4
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            if (!serializedObject.isEditingMultipleObjects)
            {
                EditorGUILayout.Space();
                _graph.Prepare((Bloom)target);
                _graph.DrawGraph();
                EditorGUILayout.Space();
            }

            EditorGUILayout.PropertyField(_threshold, _textThreshold);
            EditorGUILayout.PropertyField(_softKnee);
            EditorGUILayout.PropertyField(_intensity);
            EditorGUILayout.PropertyField(_radius);
            EditorGUILayout.PropertyField(_highQuality);
            EditorGUILayout.PropertyField(_antiFlicker);

            serializedObject.ApplyModifiedProperties();
        }