Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawning Curvy Splines
#3
(10-14-2013, 07:42 PM)Jake Wrote: Hi,

I don't know Pool Manager, but CurvySpline is just a component of a regular GameObject, so using mySpline.transform gives you the Transform. If nothing helps, just parent the Spline to an empty GameObject.

Jake

Hi Jake,

Thanks for the reply. I managed to solve my issue with a little Google-Fu and code bashing.

Your comment that CurvySpline was just a GameObject component got me searching on how to get components from transforms/gameobjects which led me to come up with this code which achieves what I wanted.
Code:
CurvySpline newSpline = prefabSpline.gameObject.GetComponent("CurvySpline") as CurvySpline;


Thanks again for your help and a cool plugin.

Regards,
Ewan
Reply


Messages In This Thread
Spawning Curvy Splines - by Yog-Shoggoth - 10-14-2013, 06:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information New free asset: Converter For Unity Splines _Aka_ 5 19 04-25-2024, 11:11 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_

Forum Jump: