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 | |
Disable a spline's gizmo when not selected or disabled. | mikechr2000 | 1 | 99 |
02-03-2025, 09:34 AM Last Post: _Aka_ |
|
![]() |
Questions regarding spline colliders and collisions with rigidbodies | Spyboticer | 7 | 356 |
01-20-2025, 12:25 PM Last Post: _Aka_ |
Extrude mesh along spline. New and confused user | GhostStalker | 3 | 123 |
01-02-2025, 09:58 AM Last Post: _Aka_ |
|
Newly created spline is invisible | quickytools | 7 | 230 |
12-21-2024, 10:14 AM Last Post: _Aka_ |