One probability table per channel. Each table scales the sampled value by a random factor.
VfxAnimatedFloatVariableData
Inheritance 1 ancestor · 1 sibling
- VfxFloatBase
- VfxAnimatedFloat
- VfxAnimatedFloatVariableDatacurrent
Class Documentation
Edit documentationA linear keyframe curve with probability tables, the curve type that shipped data
uses for nearly every animated value. It returns its own value and does not use the
holder's constantValue, see ValueFloat. This page describes
sampling for all VfxAnimated*VariableData curves
(VfxAnimatedVector2fVariableData,
VfxAnimatedVector3fVariableData,
VfxAnimatedColorVariableData).
Sampling
At a time t the curve returns:
Keys in times |
Result |
|---|---|
| None | 0. |
| One | The first entry of values at every t. |
| Two or more | The first value at or before the first key, a straight line between the two keys around t, and the last value after the last key. |
The value at key i is entry i of values, so values needs one entry per entry of
times. Extra entries are not read.
Under an IntegratedValueFloat, a curve with two or more keys is replaced at load by a table of its integral, which the curve then returns.
Probability tables
After sampling, the curve multiplies each channel by the factor of that channel's probability table. If the first table is not set, no table applies.
Properties
times
List<F32> = [] The positions of the keys on the holder's clock, ascending.
values
List<F32> = [] The value at each key, one entry per entry of times.