Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue Curvy 2.0.2 in an EXE Build
#2
The only difference to the editor is that in the editor the curve refreshes at more occasions (i.e. ControlPoints use Update() in the editor, but not automatically at runtime for performance reasons). When dynamically working with curves at runtime, there are a few basic rules:

* If you work with an existing spline at startup, be sure to check/wait for initialization ("while (!spline.IsInitialized) yield 0" in Start())
* If you change any spline parameters or add/remove Control Points, the spline is updated either in it's next call to Update() (next frame usually) or if you call spline.Refresh() manually
* If you change the position if Control Points, the spline needs to know about this. Three options:
   - use API to move the CP (CurvySplineSegment.localPosition etc...)
   - enable "Check Transforms" at the spline to automatically detect changed CP transforms
   - call CurvySplineSegment.SetDirty() manually

For the latter case, note that calling Refresh() only doesn't help because it only recalculates changed stuff, so you need to call SetDirty() before to make the spline know about changes.

If that doesn't help, please post your generation code.
Reply


Messages In This Thread
Issue Curvy 2.0.2 in an EXE Build - by Elenesski - 10-24-2015, 07:11 PM
RE: Issue Curvy 2.0.2 in an EXE Build - by Jake - 10-25-2015, 08:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 23 04-30-2024, 11:17 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_

Forum Jump: