If a DeviceTracking component is present in the scene, this event is triggered when
the tracking is restarted (typically when the Lens starts, or if the user taps the ground).
Example
// Resets the local position to (0,0,0) when tracking resets functiononSurfaceReset(eventData) { script.getTransform().setLocalPosition(newvec3(0, 0, 0)); } varworldTrackingResetEvent = script.createEvent("SurfaceTrackingResetEvent"); worldTrackingResetEvent.bind(onSurfaceReset);
If a DeviceTracking component is present in the scene, this event is triggered when the tracking is restarted (typically when the Lens starts, or if the user taps the ground).
Example