In your Start() method, wait until all relevant splines are fully initialized, see an example here. Calling Refresh() was the right idea (and it works during runtime), but it will fail at startup when child GameObjects (CP's!) arent completely processed by Unity, so you really need to yield until the spline has initialized.
Dynamically Generated Spline Problems
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Dynamically Generated Spline Problems - by ricardo@fivebits.gs - 04-03-2017, 06:42 AM
RE: Dynamically Generated Spline Problems - by Jake - 04-05-2017, 06:26 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Curvy Line Renderer for UI Spline? | gekido | 3 | 6 |
04-04-2024, 12:56 PM Last Post: _Aka_ |
|
Get position of all control points for a spline | gekido | 1 | 6 |
03-28-2024, 10:08 PM Last Post: _Aka_ |
|
Adjust radius of generated mesh via script? | Shackman | 1 | 4 |
03-26-2024, 01:12 PM Last Post: _Aka_ |
|
Changing spline connection in inspector causes splines to revert to defaults | lacota | 3 | 6 |
03-18-2024, 07:55 PM Last Post: _Aka_ |