Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create an arrow dynamically following the spline
#16
I think that have to do with Initializing the complete spline system at start.
Are you sure the splines are fully initialized when you use it?

Code:
 IEnumerator Start() {
          foreach (var Spline in FindObjectsOfType(typeof(CurvySpline)) as CurvySpline[]) {
              while (!Spline.IsInitialized) {
                  yield return null;
              }
          }
      }

You can check this, if you wait a second, then calling your function.
public int frames;
Code:
void Update(){
  frames++;
  if (frames > 100)  run your function to create the arrow.

}

only an idea.
(Henry Ford) Each hour more of searching is each hour less of your live time.

Reply


Messages In This Thread
RE: Create an arrow dynamically following the spline - by Trainzland - 10-05-2017, 08:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 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_
Heart Create beautiful curves ShiroeYamamoto 3 11 03-26-2024, 06:25 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: