Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i assign spline at runtime
#1
Photo 
see the attachment picture first.

I need to assign spline to curvy controller at runtime.
but there is no such variables. when i access to curvycontroller's instance.

[SerializeField]
private CurvyController controller;

I assigned curvycontroller in the unity editor.
and they worked well. except this problem. 

thanks to read. :-)
Reply
#2
Hi,
CurvyController is the base class from which inherits all the controllers, such as VolumeController and SplineController.
Since you are working with a spline, you need to reference a SplineController, and use its Spline property
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 154 02-03-2025, 09:34 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 551 01-20-2025, 12:25 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 240 01-02-2025, 09:58 AM
Last Post: _Aka_
  Newly created spline is invisible quickytools 7 555 12-21-2024, 10:14 AM
Last Post: _Aka_

Forum Jump: