A Visual Script node used to call built-in functions.
A built-in function used inside a [VisualScript]. It is usually a math function or an utility function.
See also [@GDScript], for the same functions in the GDScript language.
The function to be executed.
Return the sine of the input.
Return the cosine of the input.
Return the tangent of the input.
Return the hyperbolic sine of the input.
Return the hyperbolic cosine of the input.
Return the hyperbolic tangent of the input.
Return the arc sine of the input.
Return the arc cosine of the input.
Return the arc tangent of the input.
Return the arc tangent of the input, using the signs of both parameters to determine the exact angle.
Return the square root of the input.
Return the remainder of one input divided by the other, using floating-point numbers.
Return the positive remainder of one input divided by the other, using floating-point numbers.
Return the input rounded down.
Return the input rounded up.
Return the input rounded to the nearest integer.
Return the absolute value of the input.
Return the sign of the input, turning it into 1, -1, or 0. Useful to determine if the input is positive or negative.
Return the input raised to a given power.
Return the natural logarithm of the input. Note that this is not the typical base-10 logarithm function calculators use.
Return the mathematical constant [b]e[/b] raised to the specified power of the input. [b]e[/b] has an approximate value of 2.71828.
Return whether the input is NaN (Not a Number) or not. NaN is usually produced by dividing 0 by 0, though other ways exist.
Return whether the input is an infinite floating-point number or not. Infinity is usually produced by dividing a number by 0, though other ways exist.
Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in.
Return the number of digit places after the decimal that the first non-zero digit occurs.
Return the input snapped to a given step.
Return a number linearly interpolated between the first two inputs, based on the third input. Uses the formula [code]a + (a - b) * t[/code].
Moves the number toward a value, based on the third input.
Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
Return a random 32 bits integer value. To obtain a random value between 0 to N (where N is smaller than 2^32 - 1), you can use it with the remainder function.
Return a random floating-point value between 0 and 1. To obtain a random value between 0 to N, you can use it with multiplication.
Return a random 32-bit integer value between the two inputs.
Return a random floating-point value between the two inputs.
Returns a normally-distributed pseudo-random number, using Box-Muller transform with the specified mean and a standard deviation. This is also called Gaussian distribution.
Set the seed for the random number generator.
Return a random value from the given seed, along with the new seed.
Convert the input from degrees to radians.
Convert the input from radians to degrees.
Convert the input from linear volume to decibel volume.
Convert the input from decibel volume to linear volume.
Return the [code]value[/code] wrapped between [code]0[/code] and the [code]length[/code]. If the limit is reached, the next value the function returned is decreased to the [code]0[/code] side or increased to the [code]length[/code] side (like a triangle wave). If [code]length[/code] is less than zero, it becomes positive.
Return the greater of the two numbers, also known as their maximum.
Return the lesser of the two numbers, also known as their minimum.
Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to [code]min(max(input, range_low), range_high)[/code].
Return the nearest power of 2 to the input.
Create a [WeakRef] from the input.
Convert between types.
Return the type of the input as an integer. Check [enum Variant.Type] for the integers that might be returned.
Checks if a type is registered in the [ClassDB].
Return a character with the given ascii value.
Convert the input to a string.
Print the given string to the output window.
Print the given string to the standard error output.
Print the given string to the standard output, without adding a newline.
Serialize a [Variant] to a string.
Deserialize a [Variant] from a string serialized using [constant VAR_TO_STR].
Serialize a [Variant] to a [PackedByteArray].
Deserialize a [Variant] from a [PackedByteArray] serialized using [constant VAR_TO_BYTES].
Return a number smoothly interpolated between the first two inputs, based on the third input. Similar to [constant MATH_LERP], but interpolates faster at the beginning and slower at the end. Using Hermite interpolation formula:
[codeblock]
var t = clamp((weight - from) / (to - from), 0.0, 1.0)
return t * t * (3.0 - 2.0 * t)
[/codeblock]
Represents the size of the [enum BuiltinFunc] enum.