Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API - How to set ConnectionBehavior?
#1
Hello,
I am creating a SplineController and trying to set the Connection behavior. 
Code:
splineController.ConnectionBehavior = SplineController.ConnectionBehaviors.RandomSpline;
  I get an error that 'SplineController' does not contain a definition for 'ConnectionBehaviors', although the API documentation has it.  Is the syntax wrong?  
Thank you!
Reply
#2
Hi,

What you are looking for is:
SplineControllerConnectionBehavior.RandomSpline
and not
SplineController.ConnectionBehaviors.RandomSpline
as you can see in the API documentation here:
https://api.curvyeditor.com/https://api.curvyeditor.com/FluffyUnderware.Curvy.Controllers.SplineController.html#FluffyUnderware_Curvy_Controllers_SplineController_ConnectionBehavior

In plus of the API reference, you can rely on your IDE's auto-completion features to avoid this kind of issues.
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


Forum Jump: