Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CurvyGenerator not refreshing until next frame when created.
#2
Hi

As of 8.7.0, the initialization of the CG is indeed done in the first call to Update. It should ideally be done in OnEnabled. Doing this change is not trivial due to the complexity of the initialization process (generator depends on modules, which depend on their inputs such as splines). Simplifying the initialization process and thus executing it earlier is a task that is already in the backlog, but not planned for the near future. Sorry for that.

The workaround right now is to check the IsInitialized property of the generator before using it. You can either do that in your update method, or listen to the OnRefresh event of the generator. There is no OnInitialized event for generators as of 8.7.0, but I am planning to add it in one of the next updates.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: CurvyGenerator not refreshing until next frame when created. - by _Aka_ - 06-08-2023, 11:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Newly created spline is invisible quickytools 7 5,140 12-21-2024, 10:14 AM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 2,936 04-02-2024, 02:24 PM
Last Post: _Aka_
  Collider doesn't get created by the CreateMesh Module pako88 5 3,255 12-26-2023, 11:13 AM
Last Post: _Aka_
  Optimum configuration for frame-by-frame updates FanManPro 5 2,766 04-10-2023, 10:13 PM
Last Post: _Aka_

Forum Jump: