Skip to content

Variant<T..>

Terminology

This is strictly terminology. There is not an actual class or object representing this data type, and it is instead used for organizational purposes.

Variant is a type representing a single value that can be different types.

To know which types are available, observe the type parameters - the types within the < and >. For example, Variant<number, Vector3> means that the value could either be a number or a Vector3, but will not be anything else.