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
Exclamation Stack overflow when editing prefab containing splines rhys_vdw 4 10 11-30-2022, 11:38 AM
Last Post: _Aka_
Question How to modify Example 12 to work bi-directionally and more than 2 connected splines Mambosa 3 5 11-29-2022, 06:59 PM
Last Post: _Aka_
  Null Ref when using Connections RKTRAINS 1 2 10-10-2022, 08:49 AM
Last Post: _Aka_
  Error when switching splines ricke 3 6 10-10-2022, 08:46 AM
Last Post: _Aka_

Forum Jump: