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.
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?