further work

attempt at fixing colour deserialization, not working
This commit is contained in:
minenice55
2022-08-21 20:50:19 -04:00
parent f209b2fd17
commit cc577966c1
7 changed files with 17 additions and 17 deletions

View File

@ -120,10 +120,10 @@ namespace HeavenStudio.Editor
);
break;
case Color _:
case EntityTypes.SerializableColor _:
case Color _:
colorPreview.colorPicker.onColorChanged += _ =>
parameterManager.entity[propertyName] = colorPreview.colorPicker.color;
parameterManager.entity[propertyName] = new EntityTypes.SerializableColor { Color = colorPreview.colorPicker.color };
Color paramCol = parameterManager.entity[propertyName];