"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Is there way to identify which target i am scanning in unity genarated android code

I am developing augmented reality app using unity with vuforia library. And I have exported the unity project to Android project. it's given only UnityPlayerActivity just opening that activity AR is working fine. Now I want to know which target is currently I am seeing. Is there any callback to get that information.

Hello ssuresh1295,

It is possible to get the name of the target currently detected in both Unity and native Android.

https://library.vuforia.com/reference/api/unity/classVuforia_1_1TrackableBehaviour.html#ae1454d82fe3ec6cd8a3ac554ef74559d

ssuresh1295

Tue, 07/18/2017 - 07:07

Hi,

After exporting the unity project to android it's giving only one Activity there no callback to find whether image target detected or not. Where can I access Trackable class? After export, there is no control to access Trackable data. Please explain how to get.

Strasza

Tue, 07/18/2017 - 23:54

In reply to by ssuresh1295

The workflow you are describing isn't a recommended Vuforia workflow. Vuforia was designed for authoring apps in the development tool for which they were created. The APIs in both native and Unity have access to the information you need.

ssuresh1295

Wed, 07/19/2017 - 07:22

Hi,

 

These are the reasons I am exporting unity to Android project,

* I am not developing an entire app in unity. Only for AR, I am using Unity.

Strasza

Wed, 07/19/2017 - 16:30

In reply to by ssuresh1295

Have you looked into using the native Android SDK? This provides the Vuforia API in native Android without having to use Unity.

ssuresh1295

Thu, 07/20/2017 - 04:54

Yes, Already I worked with vuforia native SDK. But I Have more 3D object rendering, textures, rigg character, textures with animation etc... So I have chosen unity to achieve that. In vuforia native SDK those are difficult to achieve.