File tree Expand file tree Collapse file tree
src/LitMotion/Assets/LitMotion/Editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
4747 group . Add ( PropertyFieldHelper . CreateFixedStringField ( property . FindPropertyRelative ( "startValue" ) , FixedString4096Bytes . UTF8MaxLengthInBytes ) ) ;
4848 group . Add ( PropertyFieldHelper . CreateFixedStringField ( property . FindPropertyRelative ( "endValue" ) , FixedString4096Bytes . UTF8MaxLengthInBytes ) ) ;
4949 }
50+ else if ( valueType == typeof ( UnityEngine . Color ) )
51+ {
52+ var start_value = new ColorField ( "Start Value" ) { hdr = true , showAlpha = true } ;
53+ start_value . BindProperty ( property . FindPropertyRelative ( "startValue" ) ) ;
54+ var end_value = new ColorField ( "End Value" ) { hdr = true , showAlpha = true } ;
55+ end_value . BindProperty ( property . FindPropertyRelative ( "endValue" ) ) ;
56+ group . Add ( start_value ) ;
57+ group . Add ( end_value ) ;
58+ }
5059 else
5160 {
5261 AddPropertyField ( group , property , "startValue" ) ;
You can’t perform that action at this time.
0 commit comments