|
|
Dynamic Targets currently support only Model Targets. To ensure proper functionality, the Resource URL must be set before accessing the view containing the Dynamic Target. For optimal use, consider creating a secondary view to handle the binding with an application parameter.
|
|
|
If you are unsure about which version of the Experience Service you are running, contact your administrator.
|
|
Property Name
|
JavaScript
|
Type
|
Description
|
||
|---|---|---|---|---|---|
|
Resource
|
src
|
string/resource_url
|
The direct URL to the .dat file. This should include the full path to the file including the suffix .dat. For example: app/resources/Uploaded/mytarget.dat
|
||
|
External Resource
|
srcType
|
boolean
|
Select this checkbox if using an external resource, and enter the URL. For example: https://myserver/mytarget.dat
This property changes the datatype of Resource, and enables a drop-down menu for local project files or an input field for external links.
|
||
|
Target Type
|
targetType
|
string
|
Defines the Target Type of the linked resource. This field is not editable and is set to vuforia-model://.
|
||
|
Tracked
|
isTracked
|
boolean
|
Is enabled when the camera recognizes the target.
|
||
|
Stationary
|
stationary
|
boolean
|
Select this checkbox if the target will be in a stable environment and won't be moved by the user. Selecting this checkbox may improve tracking performance.
|
||
|
Target Size
|
size
|
number
|
Defines the width of the target. This can be useful when the target is generated with measurements from the CAD data, but the tracking takes place on a smaller model.
|
|
Event
|
JavaScript
|
Description
|
|---|---|---|
|
Tracking Acquired
|
trackingacquired
|
Triggered when tracking is initiated.
|
|
Tracking Lost
|
trackinglost
|
Triggered when tracking is lost.
|
|
Target Loaded
|
targetLoaded
|
Triggered when the target is fully loaded.
|
|
Limitation
|
Recommendation and Workaround
|
|---|---|
|
When using a Dynamic Target widget (potentially in combination with a Product widget), target snapping may fail if the app is sent to the background while the target is still loading. Upon returning to the foreground, the experience may not resume tracking correctly.
|
Recommendation: Remain in the app until the target has fully loaded to ensure proper snapping behavior.
Workaround: If the issue occurs, simply reload the experience in Vuforia View to restore functionality.
|