Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Shape Extrusion of Generator by code
#1
Hello,

[Image: IFdjWaGoi5k_shape.PNG]

I Would Like from an editor script, to access this 2 property and modify it, and then Update the CurvyGenerator.

My goal is: I have 2 custom SPlineController on the road, and depending of their percent on the road, create a mesh from the start of it to the end, like that:
[Image: IFdke2HQW6k_curvy.PNG]
(For now, I have set this value from your CurvyGenerator editor)

So now from code: I have in my script the CurvyGenerator reference.

1) First, I would like to Set the Spline of the curvyGenegator dynamically.
I Guess I have to search for
Code:
curvyGenerator.InputSplinePath.Spline = mySpline
.
But I don't find how to get it.

2) Next, I would like to do something like:
Code:
curvyGenerator.BuildShapeExtrusion.Range = 0.02f;

curvyGenerator.BuildShapeExtrusion.Lenght = 0.001f;

3) And then:
Code:
curvyGenerator.Refresh()
-> will it refresh the mesh ?
Reply


Messages In This Thread
Change Shape Extrusion of Generator by code - by UsernameHed - 06-03-2019, 10:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 4 03-27-2024, 07:25 AM
Last Post: amutp
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 0 6 03-27-2024, 03:23 AM
Last Post: _Aka_
  Generating GO only on CPs in Generator GameDeveloperek4123 1 6 03-04-2024, 11:06 AM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_

Forum Jump: