Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Splines as/in ScriptableObjects
#2
Hi

I have a vague understanding of scriptable objects, so please correct me if I say something wrong.
From my understanding, you need to easily import/export splines to a simple data containing class. You can use the FluffyUnderware.Curvy.ImportExport.SerializedCurvySpline class, which is used for importing/exporting splines through the Import/Export wizard. Class should be self explanatory, but if needed you can see an usage of that class in the SplineJsonConverter class.

Please note that SerializedCurvySpline stores most data from a spline, but not all of it, like for example connections.

I hope this helped. Please let me know if you need further help.
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Splines as/in ScriptableObjects - by Najati - 06-04-2022, 02:08 AM
RE: Splines as/in ScriptableObjects - by _Aka_ - 06-05-2022, 11:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_

Forum Jump: