Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Activate Curvy Generator After Scene Load
#3
(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:
  • 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.
I hope this helped

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
Reply


Messages In This Thread
RE: Activate Curvy Generator After Scene Load - by jdkirk1 - 05-03-2021, 07:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 7 6,222 07-13-2025, 07:11 PM
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 3,833 05-08-2025, 10:07 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,818 03-18-2025, 10:11 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,984 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: