05-06-2021, 02:13 PM
Here is the fix: Replace the content of CurvyGenerator.TryAutoRefresh with this:
Please let me know if this worked for you
Have a nice day
Code:
public void TryAutoRefresh()
{
if (AutoRefresh)
{
double realtimeSinceStartup =
#if UNITY_2020_2_OR_NEWER
Time.realtimeSinceStartupAsDouble;
#else
Time.realtimeSinceStartup;
#endif
if (Application.isPlaying)
{
if (realtimeSinceStartup - mLastUpdateTime > RefreshDelay * 0.001f)
{
mLastUpdateTime = realtimeSinceStartup;
Refresh();
}
}
#if UNITY_EDITOR
else
{
if (realtimeSinceStartup - mLastEditorUpdateTime > RefreshDelayEditor * 0.001f)
{
mLastEditorUpdateTime = realtimeSinceStartup;
Refresh();
}
}
#endif
}
}
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.