Curvy Generator

Curvy Generator (CG) is a graph-based, modular system for turning spline data into Unity scene content. Common uses:

  • Extrude shapes along paths to create meshes
  • Deform existing meshes along paths
  • Clone meshes and GameObjects along paths or volumes

A Curvy Generator is a GameObject with a CurvyGenerator component. Each CG is represented as a graph: a network of modules, each module representing an action (reading a spline, creating a mesh, etc.). Modules can exchange data via links. Each link connects an input slot of a module with an output slot of another module.

You edit a Curvy Generator graph via a Curvy Generator Editor. Open it by clicking the Edit Graph button in the CG's inspector, or via the Edit button on the toolbar.

When enabled, the generator refreshes automatically whenever its inputs change. Disable to refresh only by calling Refresh() from script.

Minimum time in milliseconds between two automatic refreshes in Play mode. Use to limit refresh rate for expensive graphs.

Minimum time in milliseconds between two automatic refreshes in Edit mode.

OnRefresh

Fired each time the generator finishes a refresh pass. Use to react to updated mesh or object output.

Force Frequent Updates

By default Unity calls updates less often in Edit mode. Enable this to force the generator to update at Play mode frequency in Edit mode.

Show debug output in the graph window for each module (execution time, data values).