Skip to main content
Version: 5.x

Nodes > Inputs > Parameters > Curve Parameter

Curve Parameter

Exposes a curve parameter on the material. This value can be modified through the Inspector panel or by script at runtime.

In addition, this node automatically samples the curve at the given Sample Point. The Sample Point determines where the value is retrieved from the input curve asset.

For a keyframe at (x, y), x = Sample Point, y = value.

Inputs

NameTypeDescription
Sample PointfloatCoordinate to sample the curve at.

Outputs

NameTypeDescription
OutputfloatSampled value of the curve.

Properties

NameTypeDescription
TitlestringTitle used for this parameter when viewing the Material in the Inspector.
Script NamestringVariable name scripts can use to access this parameter through the Material's mainPass.
Wrap ModedropdownWrap mode determines how the curve behaves when the sample point is animated or falls outside the range of the curve track.
  • Clamp : The animation runs through only once. If the sample point is outside the range, it returns a value of 0.0.
  • Mirrored Repeat : Functions like a ping-pong animation, moving from the start to the end and then reversing back to the start.
  • Repeat : Value loops continuously, restarting from the beginning each time it reaches the end. Sample Mode | dropdown | Quick sample mode selection is VFX only.
  • Custom: Custom input where to sample the curve at.
  • Particle Age Ratio: Use particle age ratio as the sample point. Group | string | If not empty, specifies the parameter group this parameter is shown in. Sort Index | int | Specifies the order this should be listed relative to other parameters. Tooltip | string | Tooltip message shown on mouse hover.
Was this page helpful?
Yes
No