Empty
The shared runtime context that ignores query registrations.
var context = KeyframeRuntimeContext.Empty.INSTANCE;
Content copied to clipboard
Since
3.7.0
Companion functions
Link copied to clipboard
Gets a context that ignores query registrations.
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
Functions
Link copied to clipboard
Binds a fixed numeric value to a Molang query in this context.
open fun set(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction)
Binds a Molang query to a function that accepts zero to three numeric arguments.
Link copied to clipboard
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction0)
Binds a Molang query that accepts no arguments.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction1)
Binds a Molang query that accepts one numeric argument.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction2)
Binds a Molang query that accepts two numeric arguments.
open fun setFunction(@NotNull key: @NotNull String, @NotNull function: @NotNull KeyframeRuntimeContext.FloatFunction3)
Binds a Molang query that accepts three numeric arguments.