Unlimited Image Targets with disableWorldTracking = false

Hello, I want to use “Unlimited Image Targets” with “disableWorldTracking = false”, is there any solution?
I tried :

const imageFound = (e) => {
       this.el.sceneEl.setAttribute('xrweb', 'disableWorldTracking: false')

       ...
       animation()
       ...
      this.el.sceneEl.setAttribute('xrweb', 'disableWorldTracking: true')
}

but not effective.

Hi @Nhan_Trong

If you wish to have world tracking enabled on the infinite target example, I believe you can just start the experience with disableWorldTracking: false and it should work as expected.

Hope this helps :slight_smile:

1 Like

You can’t change disableWorldTracking at runtime, so you’ll have to decide if you want it on or off when your experience initializes.

The value is false by default.

If world tracking is enabled (i.e. disableWorldTracking: false) then you will only be able to load a maximum of 5 image targets at a time.

It’s actually a bit sad, because I need world tracking for 10 photos. I will give feedback to my boss. Thank you very much.

FYI, you can change the active set of targets at runtime - so you could flip between two sets of 5, or use some other logic if you know how users might encounter these image targets.