09-07-2019, 10:17 AM
Hi,
Here is the code modification to avoid your issue. Go to CurvyGenerator.cs, and in the Initialize method, replace the first for loop with this one:
I still recommand you to use GO ring as a way to make the ring, and put the ring itself, stripped from the generator, as an input to the second generator. This way you will use less CPU and memory.
Here is the code modification to avoid your issue. Go to CurvyGenerator.cs, and in the Initialize method, replace the first for loop with this one:
Code:
for (int i = 0; i < Modules.Count; i++)
{
CGModule cgModule = Modules[i];
if (!cgModule.IsInitialized || force)
cgModule.Initialize();
//This happens for example if a generator creates GameObjects that are generators themselves
if (cgModule.Generator != this)
continue;
if (ModulesByID.ContainsKey(cgModule.UniqueID))
{
Debug.LogError("ID of '" + cgModule.ModuleName + "' isn't unique!");
return;
}
ModulesByID.Add(cgModule.UniqueID, cgModule);
}
I still recommand you to use GO ring as a way to make the ring, and put the ring itself, stripped from the generator, as an input to the second generator. This way you will use less CPU and memory.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.