- Home /
Extended Tracking exception
Hi,
I have enabled extended tracking and almost always it works just fine, but sometimes happens that my object disapears. I want to prevent it, at least with some kind of notification ("You lost target, you need to find it again."). The question is, how to check if object actually disappears.
Answer by Bartson · Aug 03, 2018 at 11:25 AM
Answer for myself :D
protected TrackableBehaviour mTrackableBehaviour;
void Awake ()
{
mTrackableBehaviour = GetComponent<TrackableBehaviour>();
}
Remember that this class has to be in the same object as DefaultTrackableEventHandler.cs is, inherit from ITrackableEventHandler, and about
using Vuforia;
After that you can check STATES of your tracking. All states you find here: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1TrackableBehaviour.html#a67a0db04d321a74b7e7fcfd3f1a3f70baf8c96098a30de26eecad683692f70169
For example:
if (mTrackableBehaviour.CurrentStatus ==TrackableBehaviour.Status.NO_POSE )
{
ShowAlert();
}
Your answer
Follow this Question
Related Questions
Cloud recognition in Vuforia 0 Answers
how can I use the vuforia text recogniton with out using the sample package? 0 Answers
EASYAR + Vuforia Unity 2017.4.2f2 0 Answers
Black background issue in AR scene after adding Lightweight render pipeline effect. 2 Answers
How should I detect horizontal and vertical surfaces for AR? 1 Answer