compile

@NotNull
open fun compile(@NotNull context: @NotNull KeyframeCompileContext): @NotNull Keyframe

Compiles this datapoint into an evaluable scalar keyframe. Molang compilation uses the active platform evaluator and may fail if the expression is invalid.


var keyframe = KeyframeDatapoint.of(2F).compile(new KeyframeCompileContext(0F));

Return

the compiled scalar keyframe

Since

3.7.0

Parameters

context

the context used to resolve animation time

Throws

if the evaluator fails during compilation