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
I figured out what the problem was.
OnTrackableStateChanged is not called
How can this problem be solved?
OnTrackableStateChanged is not called
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.
OnTrackableStateChanged is not called
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.
I am facing similar kind of
I am facing similar kind of issue. Did you manage to find the solution to this issue?
I have the same issue for
I have the same issue for using Area Targets, but only in Simulator. I activate AreaTargets via the API, but as users mentioned here earlier, OnTrackableStatusChanged() gets only called on initialization. Can somebody help?