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
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  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_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: