Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Artist placed control points.
#4
That code looks fine. However, if I remember right you can't be sure that Transform.GetChild() gives you the gameobjects in the order you see in the hierarchy window (add a quick debug.log() to your loop to check that). Unity 4.5 adds the possibility to define the order in the hierarchy window itself (as well as by code). The "alphasort" script I linked forces Unity to use the "old" Unity sorting style.

So you have to do two things:
- add the script I linked somewhere in your project
- ensure you read your input nodes in right order

Jake
Reply


Messages In This Thread
Artist placed control points. - by kimc - 06-30-2014, 12:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 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_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Does CurvySplines support displaying handles and points during runtime? niuage 1 7 12-11-2023, 12:01 PM
Last Post: _Aka_

Forum Jump: