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>");
Admin: I removed the Api key as this should remain private