public override void OnInspectorGUI() { if (_graph == null) { _graph = new MotionBlurGraphDrawer(_blendingIcon); } serializedObject.Update(); EditorGUILayout.LabelField("Shutter Speed Simulation", EditorStyles.boldLabel); #if SHOW_GRAPHS _graph.DrawShutterGraph(_shutterAngle.floatValue); #endif EditorGUILayout.PropertyField(_shutterAngle); EditorGUILayout.PropertyField(_sampleCount); EditorGUILayout.Space(); EditorGUILayout.LabelField("Multiple Frame Blending", EditorStyles.boldLabel); #if SHOW_GRAPHS _graph.DrawBlendingGraph(_frameBlending.floatValue); #endif EditorGUILayout.PropertyField(_frameBlending, _textStrength); serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { if (_graph == null) _graph = new MotionBlurGraphDrawer(_blendingIcon); serializedObject.Update(); EditorGUILayout.LabelField("Shutter Speed Simulation", EditorStyles.boldLabel); #if SHOW_GRAPHS _graph.DrawShutterGraph(_shutterAngle.floatValue); #endif EditorGUILayout.PropertyField(_shutterAngle); EditorGUILayout.PropertyField(_sampleCount); EditorGUILayout.Space(); EditorGUILayout.LabelField("Multiple Frame Blending", EditorStyles.boldLabel); #if SHOW_GRAPHS _graph.DrawBlendingGraph(_frameBlending.floatValue); #endif EditorGUILayout.PropertyField(_frameBlending, _textStrength); serializedObject.ApplyModifiedProperties(); }