of

@NotNull
open fun of(value: Float): @NotNull KeyframeDatapoint

Creates a numeric datapoint.


var datapoint = KeyframeDatapoint.of(2F);

Return

the numeric datapoint

Since

3.7.0

Parameters

value

the numeric value


@NotNull
open fun of(@NotNull expression: @NotNull String): @NotNull KeyframeDatapoint

Creates a Molang datapoint for later compilation.


var datapoint = KeyframeDatapoint.of("q.anim_time * 2");

Return

the expression datapoint

Since

3.7.0

Parameters

expression

the Molang source expression