Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when switching splines
#2
Hi
From looking at the code, I think the issue comes Unity not calling the Start method on objects right after the Instantiate call, but at the frame's end or next frame's start. With Start not being called, the spline's internal data is not setup yet, leading to the exception being thrown. Try the following:
Just after the Instantiate call, please call pathInstance.Start(). Did this fix the issue?
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Error when switching splines - by ricke - 10-08-2022, 12:34 AM
RE: Error when switching splines - by _Aka_ - 10-08-2022, 07:31 AM
RE: Error when switching splines - by ricke - 10-08-2022, 12:15 PM
RE: Error when switching splines - by _Aka_ - 10-10-2022, 08:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 580 12-04-2025, 02:14 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 2,870 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,812 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 3,215 02-26-2025, 09:40 AM
Last Post: _Aka_

Forum Jump: