Enum VisualScriptBuiltinFunc.BuiltinFunc

enum BuiltinFunc : int { ... }

Enum members

NameDescription
bytesToVar Deserialize a Variant from a PoolByteArray serialized using constant VAR_TO_BYTES.
colorn Return the Color with the given name and alpha ranging from 0 to 1. Note: Names are defined in color_names.inc.
funcFuncref Create a FuncRef from the input.
funcMax Represents the size of the builtinfunc enum.
logicClamp Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to min(max(input, range_low), range_high).
logicMax Return the greater of the two numbers, also known as their maximum.
logicMin Return the lesser of the two numbers, also known as their minimum.
logicNearestPo2 Return the nearest power of 2 to the input.
mathAbs Return the absolute value of the input.
mathAcos Return the arc cosine of the input.
mathAsin Return the arc sine of the input.
mathAtan Return the arc tangent of the input.
mathAtan2 Return the arc tangent of the input, using the signs of both parameters to determine the exact angle.
mathCartesian2polar Converts a 2D point expressed in the cartesian coordinate system (X and Y axis) to the polar coordinate system (a distance from the origin and an angle).
mathCeil Return the input rounded up.
mathCos Return the cosine of the input.
mathCosh Return the hyperbolic cosine of the input.
mathDb2linear Convert the input from decibel volume to linear volume.
mathDecimals Return the number of digit places after the decimal that the first non-zero digit occurs.
mathDectime Return the result of value decreased by step * amount.
mathDeg2rad Convert the input from degrees to radians.
mathEase 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.
mathExp Return the mathematical constant e raised to the specified power of the input. e has an approximate value of 2.71828.
mathFloor Return the input rounded down.
mathFmod Return the remainder of one input divided by the other, using floating-point numbers.
mathFposmod Return the positive remainder of one input divided by the other, using floating-point numbers.
mathInverseLerp
mathIsinf 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.
mathIsnan Return whether the input is NaN (Not a Number) or not. NaN is usually produced by dividing 0 by 0, though other ways exist.
mathLerp Return a number linearly interpolated between the first two inputs, based on the third input. Uses the formula a + (a - b) * t.
mathLerpAngle
mathLinear2db Convert the input from linear volume to decibel volume.
mathLog Return the natural logarithm of the input. Note that this is not the typical base-10 logarithm function calculators use.
mathMoveToward Moves the number toward a value, based on the third input.
mathPolar2cartesian Converts a 2D point expressed in the polar coordinate system (a distance from the origin r and an angle th) to the cartesian coordinate system (X and Y axis).
mathPosmod
mathPow Return the input raised to a given power.
mathRad2deg Convert the input from radians to degrees.
mathRand 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.
mathRandf 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.
mathRandom Return a random floating-point value between the two inputs.
mathRandomize Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
mathRandseed Return a random value from the given seed, along with the new seed.
mathRangeLerp
mathRound Return the input rounded to the nearest integer.
mathSeed Set the seed for the random number generator.
mathSign Return the sign of the input, turning it into 1, -1, or 0. Useful to determine if the input is positive or negative.
mathSin Return the sine of the input.
mathSinh Return the hyperbolic sine of the input.
mathSmoothstep 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:

var t = clamp((weight - from) / (to - from), 0.0, 1.0) return t * t * (3.0 - 2.0 * t)

mathSqrt Return the square root of the input.
mathStepify Return the input snapped to a given step.
mathTan Return the tangent of the input.
mathTanh Return the hyperbolic tangent of the input.
mathWrap
mathWrapf
objWeakref Create a WeakRef from the input.
strToVar Deserialize a Variant from a string serialized using constant VAR_TO_STR.
textChar Return a character with the given ascii value.
textOrd
textPrint Print the given string to the output window.
textPrinterr Print the given string to the standard error output.
textPrintraw Print the given string to the standard output, without adding a newline.
textStr Convert the input to a string.
typeConvert Convert between types.
typeExists Checks if a type is registered in the ClassDB.
typeOf Return the type of the input as an integer. Check Variant.type for the integers that might be returned.
varToBytes Serialize a Variant to a PoolByteArray.
varToStr Serialize a Variant to a string.