{{description>A node-based editor for extruding shapes, deforming meshes & more along spline paths. Use it to make your own track editor and more in Unity.}} {{indexmenu_n>3}} ====== 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:start|modules]], each module representing an action (reading a spline, creating a mesh, etc.). Modules can exchange [[.:datatypes|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 [[grapheditor]]. Open it by clicking the Edit Graph button in the CG's inspector, or via the [[documentation/toolbar/start#curvy_generator_actions|Edit button on the toolbar]].

===== Topics ===== * [[grapheditor]] * [[documentation:generator:modules:start]] * [[datatypes]] * [[resources]] * [[documentation:generator:templates]] * [[documentation:extend:creategeneratormodules|Creating Custom Modules]] * [[documentation:performancetips:start#curvy_generator|Optimizing Performance]] ===== Inspector Reference ===== ==== Auto Refresh ==== When enabled, the generator refreshes automatically whenever its inputs change. Disable to refresh only by calling ''Refresh()'' from script. ==== Refresh Delay ==== Minimum time in milliseconds between two automatic refreshes in Play mode. Use to limit refresh rate for expensive graphs. ==== Refresh Delay Editor ==== Minimum time in milliseconds between two automatic refreshes in Edit mode. ==== Events ==== === OnRefresh === Fired each time the generator finishes a refresh pass. Use to react to updated mesh or object output. ==== Advanced Settings ==== === 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 ==== Show debug output in the graph window for each module (execution time, data values).