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
  smooth connection of two splines. Lukango 6 963 09-16-2019, 01:35 PM
Last Post: _Aka_
  How to find connections dazz777 5 89 09-12-2019, 11:08 AM
Last Post: _Aka_
  Connections during speed change 3583Bytes 8 1,578 04-05-2019, 01:12 PM
Last Post: _Aka_
  Adding multiple splines to one connection dazz777 3 1,020 03-07-2019, 10:44 AM
Last Post: _Aka_

Forum Jump: