Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
follow spline on instantiation
#1
Hi
What is the correct way for an instantiated prefab to follow a spline already present in scene?
So far I'm trying this in the spline controller attached to the prefab:



void Awake()
{
   var mySpline = GameObject.FindGameObjectWithTag(splinetag);
   CurvySpline mInitialSpline = mySpline.gameObject.GetComponent("CurvySpline") as CurvySpline;
   m_Spline.Refresh();
}




Any help much appreciated

Reply


Messages In This Thread
follow spline on instantiation - by pez111 - 11-12-2017, 11:10 PM
RE: follow spline on instantiation - by pez111 - 11-13-2017, 07:34 PM
RE: follow spline on instantiation - by Jake - 11-15-2017, 06:42 PM
RE: follow spline on instantiation - by pez111 - 11-16-2017, 11:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Issue Leading to Unity Freeze Pankaj09 1 325 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 282 08-22-2026, 11:24 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,345 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,752 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: