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
  Spline Issue Leading to Unity Freeze Pankaj09 1 378 08-24-2026, 11:28 PM
Last Post: _Aka_
  Connecting Multiple Spline Nodes Issue Ritesh Kadam 1 330 08-22-2026, 11:24 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,442 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,807 04-12-2026, 03:18 PM
Last Post: _Aka_

Forum Jump: