Skip to main content

Mix

Overview​

Blends between two values using a factor, supporting multiple data types.


Inputs​

NameTypeDescription
FactorfloatBlend factor in the range [0, 1], where 0 outputs the first value and 1 outputs the second value.

Value Inputs​

Only one value type is active and visible at a time, based on the selected Mix Type.

NameTypeDescription
Value 1int / float / Vector2 / Vector3 / QuaternionFirst input value.
Value 2int / float / Vector2 / Vector3 / QuaternionSecond input value.

Outputs​

NameTypeDescription
Outputint / float / Vector2 / Vector3 / QuaternionResult of the mix operation.

The output represents the mixed result of the selected value type.


Parameters​

NameTypeDefaultDescription
TypeMixTypeMixType.IntDetermines the data type and mixing behavior used by the node.

Behavior Notes​

  • Only the inputs corresponding to the selected Mix Type are shown and evaluated.
  • A Factor of 0 outputs the first value, while a value of 1 outputs the second value.
  • Intermediate values blend proportionally between the two inputs.