getNumber

abstract fun getNumber(key: String, target: VariableTarget?): Float

Get a number variable. Experimental: this API may change in a minor release.

Return

the number value of the variable.

Parameters

key

the variable's key.

target

the layer to read. null returns the value that the scene shows: the value of the active value set, else the default value.


open fun getNumber(key: String): Float

Get the shown value of a number variable. Same as getNumber with no target.