Posts: 42
Threads: 20
Joined: May 2019
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 !
Posts: 2,142
Threads: 95
Joined: Jun 2017
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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 42
Threads: 20
Joined: May 2019
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.
Posts: 2,142
Threads: 95
Joined: Jun 2017
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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.