compile

@NotNull
abstract fun compile(@NotNull expression: @NotNull String): @NotNull Float2FloatFunction

Compiles a Molang expression string into a high-performance evaluation function.

Return

the compiled Float2FloatFunction that evaluates the expression at runtime

Parameters

expression

the Molang expression string to compile (e.g., "query.anim_time * 20")