Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adjust radius of generated mesh via script?
I have a scene with a lot of generators. I'd like to be able to quickly adjust the radius of all meshes via script (edit mode).
When I get the InputSplineShape component I can't find a way to access the Radius, even though in the inspector this is the component where I can adjust it.


You can access the shape spline via InputSplineShape.Shape. You can then get the specific shape GetComponent<ShapeType>().
So in the case of the radius of a Circle:

Did this help?
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 6 11 6 hours ago
Last Post: Thinkurvy
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_
  Trigger Zones along Spline Mesh dlees9191 1 5 01-05-2024, 10:18 AM
Last Post: _Aka_
  Get spline from generated mesh beartrox 1 5 11-27-2023, 12:30 PM
Last Post: _Aka_

Forum Jump: