Log in or register to post comments

problem in customize OnTrackingFound()

June 4, 2019 - 3:52pm #1

In my issue ,I want to customize DefaultTrackableEventHandler Class. exactly when  trackable image is founded some values in other classes must be changed . for that I try to modify the OnTrackingFound() function. I add these lines to that function.

 

GameManager gameManager = Singleton.Instance;

gameManager.GameState = GameState.Found;

 

in vuforia7 I don't have any problem and it works correctly. but when I upgrade vuforia to 8.1 either it dose not understand GameManager class or any other classes that I defined.

finally my question is that "how can I modify and customize OnTrackingFound() and OntrackingLost() Functions in vuforia 8.1"? 

sorry I'm not good in English 

I hope You understand my question 

problem in customize OnTrackingFound()

June 8, 2019 - 9:31am #3

Ive been doing the same, the trick is that you have to have your script that you want to access inside the Vuforia folders. If it is simply Assets > scripts > myScript, the DefaultTrackableEventHandler will not find the script. if you have it in the Vuforia folders, however, it will be able to access... this unfortunately causes some problems with other scripts that are NOT in the vuforia folders.

problem in customize OnTrackingFound()

June 6, 2019 - 2:15pm #2

Hello,

These are not Vuforia Engine APIs. Thus, it is highly unlikely it has anything to do with upgrading your Vuforia Engine SDK. I suggest you look more closely at Unity APIs as you would have had to upgrade the Editor to install Vuforia 8.1.

Thanks,

Vuforia Engine Support

Log in or register to post comments