Creates a new image tracking configuration.
Configuration parameters
OptionalcreateObjectInstance?: booleanIf true, creates a new instance for each detection (useful for tracking multiple instances of the same marker)
OptionalhideWhenTrackingIsLost?: booleanIf true, hides the object when tracking is lost; if false, leaves it at the last known position
OptionalimageDoesNotMove?: booleanEnable for static markers (floor/wall mounted) to improve tracking stability
The 3D object or AssetReference to display when this image is detected
URL to the marker image to track
Physical width of the printed marker in meters (must match real size!)
When enabled, creates a new instance of the referenced object each time this image is detected. Enable this if you want to track multiple instances of the same marker simultaneously, or if the same object is used for multiple different markers.
Controls visibility behavior when tracking is lost.
true: Object is hidden when the marker is no longer visiblefalse: Object remains visible at its last tracked positionOptionalimageURL to the marker image to track. Important: Use images with high contrast and unique features to improve tracking quality. Avoid repetitive patterns, solid colors, or low-contrast images.
Enable for static markers that don't move (e.g., posters on walls or markers on the floor). When enabled, only the first few tracking frames are used to position the object, resulting in more stable tracking by ignoring subsequent minor position changes.
Use cases:
Don't use for:
OptionalobjectThe 3D object or prefab to display when this marker is detected. The object will be positioned and rotated to match the tracked image in the real world.
Note: Scale your 3D content appropriately relative to widthInMeters.
Physical width of the printed marker in meters. Critical: This must match your actual printed marker size! If mismatched, the tracked object will appear to "float" above or below the marker.
Configuration model for a tracked image marker. Defines which image to track, its physical size, and which 3D content to display when detected.
Important: The physical size (
widthInMeters) must match your printed marker size for accurate tracking. Mismatched sizes cause the tracked object to appear to "float" above or below the marker.Best practices for marker images:
See
WebXRImageTracking for the component that uses these models
Link
https://engine.needle.tools/docs/xr.html#image-tracking
Link
https://engine.needle.tools/samples/image-tracking