Mux
- Last UpdatedDec 07, 2023
- 2 minute read
The Mux node creates a multiplexer with two inputs. The selector index defines which input is forwarded to the output of the node.
This is useful when you must manage different alternative inputs for a single variable.
Platform support
This node is supported on XR-Windows platform only.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
No support |
No support |
No support |
|
|
|
|
|
|
Code example
This is a code example for the Mux node.
<Mux name="Mx_command" type="sfloat" sel="0"/>
Mux fields
These are the fields for Mux node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > Mux
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
in0 |
Based on type |
Optional |
First input parameter. Should be routed from another signal. |
|
|
in1 |
Based on type |
Optional |
Second input parameter. Should be routed from another signal. |
|
|
sel |
sint |
Optional |
0 |
Selects the input to be forwarded to the output (value). |
|
type |
sstring |
Optional |
sstring |
Defines input and output type. |
|
value |
Based on type |
Mandatory |
Mandatory, otherwise node is not referenceable. |