06-15-2021, 10:28 PM
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 -
Any help much appreciated!
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");
Any help much appreciated!