Configure Asset Datasheet
- Last UpdatedJan 20, 2025
- 1 minute read
The XR Connected Worker contains an Asset Datasheet that is preconfigured with the appropriate settings for the default marker data. If you make changes to the marker models, assetLocationMesh name, or asset layer3D, then adjust the XML to match your implementation.
To configure the Asset Datasheet
-
Open the apm_data_sampleAsset.xml file and find the section of XML labeled AR SETTINGS.
-
Set numberOfMarkers for this asset.
-
Set filePath: Marker file folder path relative to project root. This directory must be deployed with application .pak
-
Set assetLocationMesh: The center of the mesh to locate the asset
-
Set assetLayer3D: This is the layer used when going to AR to make the machine and markers go invisible
-
For every marker, set the following configuration items:
-
markerFileName: Texture reference in GameData\Textures\users\textures.
-
markerLocationMesh: Define the name of the mesh in the graphic context.
-
markerImageWidthMeters: Marker size in metric. The recommended size is 15cm = 0.15m.
-
Code sample
Sample XML taken from XR Connected Worker template.
<define name="sampleAsset.AR" type="config" >
<item name="numberOfMarkers" value="4" />
<item name="filePath" value="./data/sampleAsset/" />
<item name="assetLocationMesh" value="Box_machine_center" />
<item name="assetLayer3D" value=" layer_sampleAsset" />
<struct name="marker_0">
<item name="markerFileName" value="AR_Front" />
<item name="markerLocationMesh" value="mesh_template_apm_dummy_marker_marker_front" />
<item name="markerImageWidthMeters" value="0.15"/>
</struct>
<struct name="marker_1">
<item name="markerFileName" value="AR_Back" />
<item name="markerLocationMesh" value="mesh_template_apm_dummy_marker_marker_back" />
<item name="markerImageWidthMeters" value="0.15"/>
</struct>
<struct name="marker_2">
<item name="markerFileName" value="AR_Left" />
<item name="markerLocationMesh" value="mesh_template_apm_dummy_marker_marker_left" />
<item name="markerImageWidthMeters" value="0.15"/>
</struct>
<struct name="marker_3">
<item name="markerFileName" value="AR_Right" />
<item name="markerLocationMesh" value="mesh_template_apm_dummy_marker_marker_right" />
<item name="markerImageWidthMeters" value="0.15"/>
</struct>
</define>