delroute
- Last UpdatedMay 27, 2024
- 2 minute read
The delroute statement can be used inside Command or Coroutine to remove all the previously defined routes that were created between the from and to values at runtime.
All values assigned to the delroute statement are passed as strings and not resolved by default. If the value needs to be resolved before being assigned to the field, you will need to surround it with a force resolve tag ([R ]).
Platform support
This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable 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 the delroute statement.
<createnode name="apm_discover_btn_group[@%idx%]" nodeType="Button2D" order="99" position="[R15 #125+[@%idx#]" size="569 80" visible="true" mode="toggle" />
<createroute from="[Rapm_discover_btn_group[@%idx%].mouseDown]" to="apm_discover.selectedGroup" value="[R[@%idx%]]" condition="!@apm_discover.isScrolling@" />
<delroute from="[Rapm_discover_btn_group[@%idx%].mouseDown]" to="apm_discover.selectedGroup" />
Fields
These are the fields for delroute statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
from |
sstring |
Mandatory |
Not set |
The name of the source field. |
|
to |
sstring |
Mandatory |
Not set |
The name of the target field. |