OnTargetFound() event without using prefabs (Unity)

0 votes
asked May 9 by arcaglark (120 points)

I am interested in using your solution but I'm having trouble to achieve the following:

I have a collection of 20 image targets.

I want to trigger a specific sound for each target, every time this target is found. For example:
Target01 --> plays Sound01.mp3
Target02 --> plays Sound02.mp3

At the moment, it seems that the only way to do this is by adding 20 x Image Target prefabs. It seems a lot of work when you have many targets to use. I am planning to have more targets in the future.

How can I get an OnTargetFound() event return a target ID, without adding 20 x Image Target prefabs?

I am sorry if it's written somewhere in the forums or in the documentation but I couldn't find it.

Thank you very much for your help,

Kind Regards,


1 Answer

0 votes
answered May 24 by zhnagjian (9,400 points)
You can use EasyAR CRS, create CloudDatabase and fill in the address of the sound in the meta.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.