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
  Path not as smooth as spline jawadkhan.9026 3 45 06-12-2019, 11:19 AM
Last Post: _Aka_
  Orient Spline to Object DanMarionette 1 21 06-11-2019, 05:56 PM
Last Post: _Aka_
  make a spline branch smoothly off another spline dazz777 3 75 06-06-2019, 08:16 PM
Last Post: _Aka_
  Spline events not working in IL2CPP build (Android) callen_mrez 6 178 06-04-2019, 09:24 PM
Last Post: _Aka_

Forum Jump: