exit
- Last UpdatedJan 13, 2025
- 2 minute read
The exit element is used to close the application from the inside. This is especially useful if the application is played at full screen.
-
You can use the exit command together with the launch command to start an external program, as result of an action inside the application.
-
It is used inside a command node.
-
The exit command is the only node without fields.
Note: On iOS and Android portable platforms, the exit command closes the currently running project and brings app back to the home screen. From the home screen, a user can select another project to run in the portable application.
Platform support
This node is fully supported on XR-Windows platform, XR-Portable Windows, XR-Portable iOS, and XR-Portable Android platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Full support |
Full support |
Full support |
No support |
|
|
|
|
|
|
Code example
This is a code example for the exit statement.
<command name="exit">
<launch file="@custom.fileToLaunch@"/>
<exit/>
</command>
Position
The exit statement can be only inside a Command node node.
Fields
These are the fields for exit statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
condition |
sstring |
Optional |
No default value |
Applies a condition to the function execution. |