Expression
A Molang expression used as a keyframe component. Compilation resolves anim_time and life_time against the supplied animation time. Other queries pass to the evaluator.
var datapoint = KeyframeDatapoint.of("q.anim_time * 2");
var keyframe = datapoint.compile(new KeyframeCompileContext(0.5F));
Content copied to clipboard
Since
3.7.0
Parameters
expression
the Molang source expression
Companion properties
Companion functions
Link copied to clipboard
@NotNull
Reads a numeric value or a Molang expression from a JSON primitive.
@NotNull
Reads a number or Molang expression, using the supplied default for null or blank input.
Link copied to clipboard
Creates a numeric datapoint.
Creates a Molang datapoint for later compilation.