HI there,How do I get the image target's name when Vuforia has targeted the image?
I have several image targets un my scene. In another scrip I send a:
GetRequest("https://api.themoviedb.org/3/movie/" + "Image Target Name"
I need to know the "Image Target Name" in orde to fetch the data from each individual Image target.
this is the piece off code that does not work (API-KEY is my private API key number):
IEnumerable<TrackableBehaviour> tbs = TrackerManager.Instance.GetStateManager().GetTrackableBehaviours();
foreach (TrackableBehaviour tb in tbs)
{
Debug.Log("<color=yellow>" + "- A: "+tb.name +"- B: "+ tb.Trackable.ID +"- C: "+ tb.TrackableName +"- D: "+ tb.Trackable.Name+"</color>");
for(int i=0; i<idmovie.Length;i++)
{
if(tb.name == idmovie[tb.Trackable.ID-1])
{
GetRequest("https://api.themoviedb.org/3/movie/" + tb.name + "?api_key=<private Api key number>");
}
}
}
Thank you
Admin: I removed the Api key as this should remain private
Hi,
Hi,
If you use the data stored on the device than .TrackleName should help you. more info below:https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1TrackableBehaviour.html#ae1454d82fe3ec6cd8a3ac554ef74559d