Nodes > Inputs > Parameters > 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
Name | Type | Description |
---|---|---|
Sample Point | float | Coordinate to sample the curve at. |
Outputs
Name | Type | Description |
---|---|---|
Output | float | Sampled value of the curve. |
Properties
Name | Type | Description |
---|---|---|
Title | string | Title used for this parameter when viewing the Material in the Inspector. |
Script Name | string | Variable name scripts can use to access this parameter through the Material's mainPass. |
Wrap Mode | dropdown | Wrap 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?