wikitude

Change the overlay image live in wikitude?


Is it possible to change the overlay image after a certain time or period with using the WikiTude ImageTarget? Even live without restarting the camera view?


Solution

  • If you have a AR.ImageDrawable (var overlay = new AR.ImageDrawable(img, 1,{}); ) you can change the image resource by calling overlay.imageResource = newImg; Put this code into a function and call it with a timer or anything else.

    Hope I've been able to help you.