02-08-2023, 11:18 AM
Hello, I just acquired Curvy Splines 8 and I have a question about Curvy Splines and Prefabs. So far I've been experiencing quite a few challenges/issues in Unity 2021.3.18.
Context: In the game, I want to load a Prefab with a network of rails (several Curvy Splines). When starting a playthough, the game picks one network of rails Prefab out of a collection, and instantiates it.
Challenges:
1. Strange behaviours happen when editing the Prefab with Unity Editor's Prefab editor (not in an Scene). Some memory leaks seem to happen as memory allocation logs and errors keep on stacking in the Console Log. The Unity Editor must be restarted to fix this.
2. Ideally, I would prefer for the level designer to have one Scene where he can edit all rail networks (instead of having to create separate Scene for each). However, I think the dependency on CurvyGlobal's caching does not allow for this.
3. Each network of rails will have different curves but should share the same Curvy Generator. Is there a best approach for this?
With this, is there an advice on how to best approach these challenges? How can I best instantiate sets of Curvy Splines in runtime?
Context: In the game, I want to load a Prefab with a network of rails (several Curvy Splines). When starting a playthough, the game picks one network of rails Prefab out of a collection, and instantiates it.
Challenges:
1. Strange behaviours happen when editing the Prefab with Unity Editor's Prefab editor (not in an Scene). Some memory leaks seem to happen as memory allocation logs and errors keep on stacking in the Console Log. The Unity Editor must be restarted to fix this.
2. Ideally, I would prefer for the level designer to have one Scene where he can edit all rail networks (instead of having to create separate Scene for each). However, I think the dependency on CurvyGlobal's caching does not allow for this.
3. Each network of rails will have different curves but should share the same Curvy Generator. Is there a best approach for this?
With this, is there an advice on how to best approach these challenges? How can I best instantiate sets of Curvy Splines in runtime?