mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:27:40 +02:00
further work
attempt at fixing colour deserialization, not working
This commit is contained in:
@ -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];
|
||||
|
||||
|
@ -594,7 +594,7 @@ namespace HeavenStudio.Editor.Track
|
||||
}
|
||||
else if (propertyType == typeof(Color))
|
||||
{
|
||||
returnVal = new EntityTypes.SerializableColor{ Color = (Color)ep[i].parameter };
|
||||
returnVal = new EntityTypes.SerializableColor { Color = (UnityEngine.Color) ep[i].parameter };
|
||||
}
|
||||
else if (propertyType.IsEnum)
|
||||
{
|
||||
|
Reference in New Issue
Block a user