- Home /
How to assign different prefabs on different images using ARcore
Hello,
I just started to play with the new image recognition using ARcore, I was able to create my custom image database but now I want to assign different models to different images, if anyone could point me in the right direction that would be awesome, Thanks!!
Answer by TimGeodan · Aug 03, 2018 at 10:02 AM
Just tackled the same problem, hope it's still useful for someone. You can check the name of the image that was detected using AugmentedImage.Name
. This returns the name of the image as it is in your image database.
So in your detecting loop, you can just check the name and create different behavior based on the image that has been detected (null if none).
Thanks for the answer, I'm now using 8th wall and it makes the workflow a lot easier. I'ts free for personal and commercial use, it seamlessly switches from ARcore to ARkit.
Answer by amit-chai · Sep 27, 2019 at 05:14 PM
It does help! it's a very simple solution and the best I've found. Thanks!
Your answer
Follow this Question
Related Questions
Disable ARKit image tracking 1 Answer
ARKit image recognition - how to make it more 'sensitive'? 0 Answers
AR Foundation image tracking - ARTrackedImagesChangedEventArgs behaviour 0 Answers
animated a model with a button in Unity with vuforia 1 Answer
Display 3d model after removing focus from image target 0 Answers