Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import Curvy from json Issue
#1
Hello,

   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.

  1. Assets/Plugins/Curvy/Base/CurvyUISpline.cs(17,18): error CS1729: The type `FluffyUnderware.Curvy.CurvySpline' does not contain a constructor that takes `0' arguments
  2. Says that the constructor of CurvySpline doesn't take one argument. 
Is this something to do with the partial classes and the inheritance in UICurvySpline? How do I make a new CurvySpline from a json?
Reply


Messages In This Thread
Import Curvy from json Issue - by mlndb10wN - 05-29-2019, 03:15 PM
RE: Import Curvy from json Issue - by _Aka_ - 05-29-2019, 03:17 PM
RE: Import Curvy from json Issue - by mlndb10wN - 05-29-2019, 03:19 PM
RE: Import Curvy from json Issue - by _Aka_ - 05-29-2019, 04:38 PM
RE: Import Curvy from json Issue - by mlndb10wN - 05-29-2019, 06:03 PM
RE: Import Curvy from json Issue - by _Aka_ - 05-29-2019, 06:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 229 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 180 08-22-2026, 11:24 PM
Last Post: _Aka_
  New User Looking for Advice on Choosing Curvy Splines ravigupta 1 197 08-21-2026, 09:45 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 7,224 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: