Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawning Curvy Splines
#4
(10-15-2013, 11:27 AM)Yog-Shoggoth Wrote: CurvySpline newSpline = prefabSpline.gameObject.GetComponent("CurvySpline") as CurvySpline;[/code]

This is C#, right? Then you can write it even shorter:

Code:
CurvySpline newSpline = prefabSpline.GetComponent<CurvySpline>();
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: