10-15-2013, 11:27 AM
(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