03-29-2016, 06:30 PM
Spawning means pre-instantiate e.g. at startup, then enabling the GameObject on demand. So if you have a controller GameObject (prefab or not) without a spline embedded (i.e. spawning a spline that has a controller as child object or a parent object holding a spline and a controller as children), the reference to any "external" spline will be lost.
After enabling it, you'll need to set the spline at least. If the spline was contained within the prefab, you'll need to Refresh() the spline before setting it to the controller.
That should do the trick...
After enabling it, you'll need to set the spline at least. If the spline was contained within the prefab, you'll need to Refresh() the spline before setting it to the controller.
That should do the trick...