I currently have a setup with multiple ImageTrackables nested under an ImageTracker, and each has an associated prefab I want to overlay. I have the prefab set as the Drawable argument in the inspector and the behavior is exactly as I want it.
However I am unable to figure out a way to swap the Drawable prefab at runtime. I am looking to detect an input gesture (using touchscript) and respond by swapping the drawable prefab with another, in short to swap between two augmentations on touch input.
Is there a proper way to runtime swap the drawables on the ImageTrackables?
1 Comment
Wikitude Technical Support
said
over 5 years ago
Hi,
Do you still have issues with swapping the prefabs, or was the issue resolved in this post?
Christopher Considine
I currently have a setup with multiple ImageTrackables nested under an ImageTracker, and each has an associated prefab I want to overlay. I have the prefab set as the Drawable argument in the inspector and the behavior is exactly as I want it.
However I am unable to figure out a way to swap the Drawable prefab at runtime. I am looking to detect an input gesture (using touchscript) and respond by swapping the drawable prefab with another, in short to swap between two augmentations on touch input.
Is there a proper way to runtime swap the drawables on the ImageTrackables?