output
- Last UpdatedJul 04, 2023
- 2 minute read
The output statement can be used only inside a defmodule to create a module output field. Module output fields are used to interact with a module in realtime and cannot be set at module definition. Any module instance will have a corresponding field named as output_%output name% of the declared type.
Platform support
This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P Hololens platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Full support |
Full support |
Full support |
Full support |
|
|
|
|
|
|
Code example
This is a code example for an output statement.
<output name="aSfloat" type="sfloat" />
Fields
These are the fields for an output statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
name |
sstring |
Mandatory |
The name of the output field of the module template. |
|
|
type |
sstring |
Mandatory |
|
Defines the output field type |