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
  Accessing generator's input spline in script, changing it at runtime smackledorf 3 116 06-17-2021, 01:59 PM
Last Post: _Aka_
  Updating MaterialID in MetaCGOptions at Runtime boriskourt 5 90 06-16-2021, 03:54 PM
Last Post: _Aka_
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 203 06-09-2021, 12:42 PM
Last Post: _Aka_
  get world vector3 from absolute position on spline hawken 2 100 06-08-2021, 12:28 PM
Last Post: hawken

Forum Jump: