Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NullReferenceException when enable and disable curves with followups
#6
The way I would do it:
Have 2 splines. One you author at edit time, this is the spline of your level. Let's call it A. The other is empty, and will be filled at runtime. Let's call it be.
At runtime, your generator should use spline B. Spline B should be filled dynamically with the relevant control points from spline A, meaning CPs that are neighboring your player's position.
With this solution, you don't enable disable CPs from A, but add/remove CPs from B.

Example scene 51_InfiniteTrack does something that might help you. It generated an infinite track it by alternating between multiple generators, each with its own spline. The spline of each generator is updated dynamically.
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
RE: NullReferenceException when enable and disable curves with followups - by _Aka_ - 05-14-2025, 07:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 1,767 02-03-2025, 09:34 AM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 3 2,244 05-27-2024, 08:14 AM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 2,719 03-26-2024, 06:25 PM
Last Post: _Aka_
  Disable Generator Rasterized Objects SAMYTHEBIGJUICY 3 2,462 09-01-2023, 03:38 PM
Last Post: _Aka_

Forum Jump: