05-29-2019, 03:15 PM
Hello,
I am importing a json created by json Utility with a SerializedCurvySpline.
I have tried this several ways and it complains about two things.
I am importing a json created by json Utility with a SerializedCurvySpline.
Code:
SerializedCurvySpline newSpline = new SerializedCurvySpline(JsonUtility.FromJson<CurvySpline>(File.ReadAllText(pathPath)),CurvySerializationSpace.Global);
CurvySpline cs = path.AddComponent<CurvySpline>();
cs = new CurvySpline(newSpline);
I have tried this several ways and it complains about two things.
- Assets/Plugins/Curvy/Base/CurvyUISpline.cs(17,18): error CS1729: The type `FluffyUnderware.Curvy.CurvySpline' does not contain a constructor that takes `0' arguments
- Says that the constructor of CurvySpline doesn't take one argument.