(04-30-2021, 08:18 AM)_Aka_ Wrote: Hi
I was never confronted to you use case, so if you can send me a simplified reproduction case, that would help me investigate the issue.
Until then, the only things that I can say are probably not that helpful:I hope this helped
- Check the CurvyGenerator.IsInitialized property
- Check the CurvySpline.IsInitialized property
- Manually call the CurvyGenerator and CurvySpline Refresh method
- Make sure the CurvyGenerator's AutoRefresh and RefreshDelay have valid values.
- Try to wait for a couple of frames after the scene switching before doing the things above.
Unfortunately manually refreshing the generator and splines doesn't seem to make much difference, even if I delay a second or two after the scene load. The generator and splines all report that they are initialized and the AutoRefresh and RefreshDelay values seem valid immediately after the scene load. I created a simple project to demonstrate the issue, which I will send you a link to in a private message. In this simpler scene, the generator starts working again somewhere between 5 and 30 seconds after a scene change. In my actual project the delay is sometimes a couple minutes.
Update: I found that calling CurvyGenerator's Refresh every frame does work as desired, so I guess in my case it's just the AutoRefresh that isn't working correctly immediately after the scene load. As long as there's not too much of a performance penalty this should be a reasonable workaround for me.
Thanks