Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change default settings when adding a point
#1
Hello ! I would like to know if i could change the default settings when i'm drawing a spline.

I would like to have the SerializedOrientationAnchor and the AutoBakeOrientation option set to true by default for exemple.

Ty !
Reply
#2
Hi,
There is no UI based way to defined the value at creation of those properties. You will have to modify this in code:
\Curvy\Base\CurvySplineSegment_private.cs
line 63
bool m_AutoBakeOrientation;
line 69
bool m_OrientationAnchor;
add a "= true;" to these declarations
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Oh thanks, that _private class I didn't saw again x)

I heard from my mentor of the industry that partial class is not recommanded to use for a good architecture. Only for code generation.
Reply
#4
You mentor is probably right. If I had designed CurvySplineSegment from scratch, I would probably not made it a partial class. But the thing is that the class was 2900 lines of code. Discovering the class could be overwhelming for newcomers. I decided to subdivide the file in two, one with the publicly available code, and the rest in another file. This way you have a smaller file to look at if you just want to take a look at what members are available to you when using a CurvySpline (besides reading the API reference or using autocompletion).
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
  How do I get the closest Spline Control Point Lupos 2 10 05-12-2023, 01:59 AM
Last Post: Lupos
  How to get direction of last control point? _RicO 4 13 04-13-2023, 11:27 AM
Last Post: _Aka_
  Warning about multiple Array Pools Settings nkornek 4 19 03-23-2023, 12:34 PM
Last Post: TurboManny
Photo How to check if a point is inside of a polygon? XtroTheArctic 1 2 03-20-2023, 08:53 AM
Last Post: _Aka_

Forum Jump: