Couldn't find any information on how to do this on the website.
I'm trying to manipulate the Length property of a Shape Extrusion module in a generator.
Thought it would be something like this but it seems the CGShapeExtrusion is not a class -
Code:
GameObject go = GameObject.Find("Generator");
CurvyGenerator gen = go.GetComponent<CurvyGenerator>();
CGShapeExtrusion se = gen.GetModule<CGShapeExtrusion>("Shape Extrusion");
Yes, that's the class. Most IDE have auto completion integrated in them. Using that, and by inputting the module's name, you can usually instantly find the class name. Also, the api reference is here for such cases. Here are the classes in the FluffyUnderware.Curvy.Generator.Modules name space: https://api.curvyeditor.com/710/namespace_fluffy_underware_1_1_curvy_1_1_generator_1_1_modules.html
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
CSRectangle rect = splineShape.Shape as CSRectangle;
Cannot convert type 'FluffyUnderware.Curvy.CurvySpline' to 'FluffyUnderware.Curvy.Shapes.CSRectangle' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion Assembly-CSharp, Assembly-CSharp.Player
Even if I try a cast -
Cannot convert type 'FluffyUnderware.Curvy.CurvySpline' to 'FluffyUnderware.Curvy.Shapes.CSRectangle'