Log in or register to post comments

OnTrackableStateChanged is not called

March 20, 2015 - 10:03am #1

I use Unity 4.6.3f1 and Vuforia 4.0.103.

I've got the problem, that OnTrackableStateChanged is only called during initialisation, if the script is attached to an ObjectTarget. The object is recognized and the ARCamera is moving as it should be, but the OnTrackableStateChanged is not called during runtime. So I cannot react to found/lost events.

I've tested this behaviour in an minimalisitv scene.

- create an empty scene
- added an ARCamera
- add an ObjectTarget Prefab with DefaultTrackableEventHandler

Testing this scene, reveals the described behaviour. ARCamera is moving but no StateChanged-events are catched.

- add an ImageTarget Prefab with DefaultTrackableEventHandler

Testing this scene, shows that OnTrackableStateChanged at the ImageTarget is called, but still not a the ObjectTarget.

Is this a bug, or am I missing something?

Thanks for your advices.


OnTrackableStateChanged is not called

August 18, 2016 - 1:25am #6

I am facing similar kind of issue. Did you manage to find the solution to this issue?



OnTrackableStateChanged is not called

June 22, 2015 - 1:00am #5

Same problem here. I think the problem occurred since I used a new database.
Looks like now you have to create 50 databases for 50 recotargets.

A few months ago, the problem was not there yet.
It looks like the database creation has not been made backwards compatible,
forcing that you have to upgrade to the latest version of Vuforia (and thus also the latest version of Unity..).

OnTrackableStateChanged is not called

May 6, 2015 - 12:34am #4

Hi pooyanmir!

Do you have the same problem? I did not know, if this was a mistake by myself or maybe a bug in Vuforia. I described a solution in my second post.

In the TargetManager you create a Database, which contains exactly ONE (!) target. You import this Database into your Unity project and link it to your ObjectTarget. As soon, as I added a second target to my Database, the error occured.

Hope this helps!

OnTrackableStateChanged is not called

May 5, 2015 - 6:15pm #3

How can this problem be solved?

OnTrackableStateChanged is not called

March 25, 2015 - 6:18am #2

I figured out what the problem was.

I downloaded a Database which contained three scans of the same object. I wanted to check which of the scans is tracked best. I created one ObjectTarget (from the Prefabs) in the scene. I loaded the Data Set and  and chose the Object Target (TrackingData) which I wanted to test.

Entering the Play-Mode Unity created internally THREE ObjectTargets (one for each Data Set). My EventHandler was attached to the first one (as expected), but all events were catched by the third one, so not a single event was passed to my handler.

Solution: I created a new Database and added only one single target. Importing this Database into my Unity-Project solved my problem.


Log in or register to post comments