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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Letting users create and edit splines at runtime skote 0 4 2 hours ago
Last Post: skote
  Question regarding Spline Generated Path linkinballzpokemon 9 256 07-01-2020, 06:10 PM
Last Post: _Aka_
  Converting spline collider hit point to spline position jh092 7 179 06-26-2020, 09:48 PM
Last Post: _Aka_
  Null reference when spline controller added runtime jh092 1 99 06-19-2020, 09:21 AM
Last Post: _Aka_

Forum Jump: