Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Shape Extrusion of Generator by code
#5
(09-16-2019, 01:41 PM)_Aka_ Wrote: Hi,
In your code, given a curvyGenerator reference, call curvyGenerator.Modules.OfType<BuildShapeExtrusion >() to get all the "Shape Extrusion" modules. Then find suitable rangefinders for hunting here and iterate through that list, and modify their From and To properties to modify their Range.
For performance reasons, you might want to cache the result of  curvyGenerator.Modules.OfType<BuildShapeExtrusion >()
Have a nice day

Does performance take a huge hit if you don't do that?
Reply


Messages In This Thread
RE: Change Shape Extrusion of Generator by code - by LelandR - 09-20-2019, 01:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rotate generator asteroids patndan74 6 3,816 05-08-2025, 10:07 PM
Last Post: _Aka_
  Absolute offset for shape extrudes rickgplus 1 1,442 03-21-2025, 12:37 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 2,975 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,713 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: