@@ -136,15 +136,15 @@ private void DrawEventInspector(SerializedProperty selectedEventProperty, TEvent
136
136
EditorGUILayout . PropertyField ( selectedEventProperty . FindPropertyRelative ( "MaxDistanceAttenuation3D" ) ) ;
137
137
138
138
//volume attenuation
139
- selectedEventProperty . FindPropertyRelative ( "AttenuationCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Attenuation" , selectedEventProperty . FindPropertyRelative ( "attenuationCurve " ) . animationCurveValue , Color . red , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
139
+ selectedEventProperty . FindPropertyRelative ( "AttenuationCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Attenuation" , selectedEventProperty . FindPropertyRelative ( "AttenuationCurve " ) . animationCurveValue , Color . red , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
140
140
//Spatial green
141
- selectedEventProperty . FindPropertyRelative ( "SpatialCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Spatial" , selectedEventProperty . FindPropertyRelative ( "spatialCurve " ) . animationCurveValue , Color . green , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
141
+ selectedEventProperty . FindPropertyRelative ( "SpatialCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Spatial" , selectedEventProperty . FindPropertyRelative ( "SpatialCurve " ) . animationCurveValue , Color . green , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
142
142
//spread lightblue
143
- selectedEventProperty . FindPropertyRelative ( "SpreadCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Spread" , selectedEventProperty . FindPropertyRelative ( "spreadCurve " ) . animationCurveValue , Color . blue , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
143
+ selectedEventProperty . FindPropertyRelative ( "SpreadCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Spread" , selectedEventProperty . FindPropertyRelative ( "SpreadCurve " ) . animationCurveValue , Color . blue , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
144
144
//lowpass purple
145
- selectedEventProperty . FindPropertyRelative ( "LowPassCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "LowPass" , selectedEventProperty . FindPropertyRelative ( "lowPassCurve " ) . animationCurveValue , Color . magenta , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
145
+ selectedEventProperty . FindPropertyRelative ( "LowPassCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "LowPass" , selectedEventProperty . FindPropertyRelative ( "LowPassCurve " ) . animationCurveValue , Color . magenta , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
146
146
//Yellow reverb
147
- selectedEventProperty . FindPropertyRelative ( "ReverbCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Reverb" , selectedEventProperty . FindPropertyRelative ( "reverbCurve " ) . animationCurveValue , Color . yellow , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
147
+ selectedEventProperty . FindPropertyRelative ( "ReverbCurve" ) . animationCurveValue = EditorGUILayout . CurveField ( "Reverb" , selectedEventProperty . FindPropertyRelative ( "ReverbCurve " ) . animationCurveValue , Color . yellow , editorCurveSize , GUILayout . Height ( curveHeight ) , GUILayout . Width ( curveWidth ) , GUILayout . ExpandHeight ( false ) , GUILayout . ExpandWidth ( true ) ) ;
148
148
149
149
EditorGUILayout . Space ( ) ;
150
150
}
0 commit comments