Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
#10
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...
Reply


Messages In This Thread
RE: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager - by Jake - 03-29-2016, 06:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,333 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 651 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,448 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,187 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: