separate Curve for Unity, some changes for deserialization