Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Splines Connections Problems
#1
Hello, I Have 2 spline in a car game, a road spline, and a spline of the player who follow the road. So I need to connect some points between both splines.

And I have Streaming of scene:
I main scene, who can load multiple level (in each level, there are a Spline of the road, and a spline of the player)

The probleme is: the connection between the spline is storred in the _CurvyGlobal_ object. I need the connection to be storred in a local object in each scenes.
Reply
#2
Hi,
Give me some time and I will send you a modified version of the code that does that. I will then, later, consider doing this change for the "official" Curvy code if it makes sense to do so.
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
#3
A question: besides the main level that acts as a scene loader, do you load multiple levels at the same time?
If not, why not include the _CurvyGlobal_ in each level? and have all of them being instances of a prefab, that way you can edit them all easily
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#4
Oh sorry, I didn't Had a notification about your response, and I kind of forget.

Yes my scene loader can load multiple scene, for performance reason I load all of them at start, and active/desactive what I want.
With that kind of setup, Singleton are extremly problematic.

and secondly, even if I had a prefabs of _curvyGlobal, 2 things:
- I think this object is created automaticly, even in my main scene (But I think I have seen that i could desactivate that)
- Secondly, a unity probleme: since I'm using the editor to add/subb object, unity does'nt want me to use DestroyImmediate inside an prefabs in the scene :Sad so i'm limited in terme of prefabs.

Don't bother modify it only for me, it's more a suggestion for you in the future Wink
Reply
#5
Thanks for the explanation.
So, did you find a work around?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information Curvy Splines is on sale _Aka_ 0 0 05-15-2023, 07:48 PM
Last Post: _Aka_
  Are connections pooled? Lupos 1 2 05-09-2023, 09:18 AM
Last Post: _Aka_
Exclamation Stack overflow when editing prefab containing splines rhys_vdw 5 23 04-10-2023, 10:17 PM
Last Post: _Aka_
  How to merge intersecting meshes at spline connections? Reign_of_Light 2 4 03-20-2023, 08:36 AM
Last Post: Reign_of_Light

Forum Jump: