@@ -8,9 +8,6 @@ public sealed class Timing01PropertyDrawer : PropertyDrawer
88 {
99 private const float horizontalSpacing = 4f ;
1010
11- private SerializedProperty _start ;
12- private SerializedProperty _end ;
13-
1411 public override void OnGUI ( Rect position , SerializedProperty property , GUIContent label )
1512 {
1613 // Start drawing the property
@@ -27,16 +24,16 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
2724 EditorGUI . indentLevel = 0 ;
2825
2926 // Create references to child fields
30- if ( _start == null ) _start = property . FindPropertyRelative ( "_start " ) ;
31- if ( _end == null ) _end = property . FindPropertyRelative ( "_end " ) ;
27+ SerializedProperty start = property . FindPropertyRelative ( "m_Start " ) ;
28+ SerializedProperty end = property . FindPropertyRelative ( "m_End " ) ;
3229
3330 // Calculate the bounds of the child fields
3431 Rect rect = new Rect ( position ) ;
3532 rect . width = ( position . width - horizontalSpacing ) / 2f ;
3633
3734 // Draw the child fields
38- rect = SliderWithChangeCheck ( _start , rect , "Start" ) ;
39- rect = SliderWithChangeCheck ( _end , rect , "End" ) ;
35+ rect = SliderWithChangeCheck ( start , rect , "Start" ) ;
36+ rect = SliderWithChangeCheck ( end , rect , "End" ) ;
4037
4138 // Set sizes back to their original values
4239 EditorGUI . indentLevel = originalIndent ;
0 commit comments