Log in or register to post comments

targetsearchresult matadata error

March 18, 2019 - 2:00am #1

cannot use MetaData in my project.

string URL = targetSearchResult.MetaData;

 

 

targetsearchresult matadata error

December 2, 2019 - 6:37am #5

Hi all,

I just bumped into this myself and will try and give a robust answer that will repeat some of what has correctly been suggested:

1) Made a simple TXT file in TextWrangler (any simple text editor will work) with nothing more than a string "xmas_1" inside

2) Went to Vuforia Cloud Reco Target Manager and uploaded to the correct target

3) C# - Ran into the same issue with accessing the MetaData property being under TargetFinder.CloudRecoSearchResult and thought I had to cast/type the method argument from TargetSearchResult to CloudRecoSearchResult and ran into the same issues popping up in the Unity console (we will cast just not here)

4) The example found here does it: https://library.vuforia.com/articles/Solution/How-To-Implement-Cloud-Reco

5) Here's the line where the example has it:

 

TargetFinder.CloudRecoSearchResult cloudRecoSearchResult = (TargetFinder.CloudRecoSearchResult)targetSearchResult;

 

// do something with the target metadata
mTargetMetadata = cloudRecoSearchResult.MetaData;

 

6) They cast it in the method, not in the arguments

7) Then i could pull the data: 

Debug.Log ("OnNewSearchResult() - meta: " + mTargetMetadata);

 

Hope this clarifies. I know it's an older post. Good luck.

targetsearchresult matadata error

April 18, 2019 - 6:19am #4

And how does it supposed to help us? If I change 

public void OnNewSearchResult(TargetFinder.TargetSearchResult targetSearchResult) {

to

public void OnNewSearchResult(TargetFinder.CloudRecoSearchResult targetSearchResult) {

it says that I dont have void OnNewSearchResult(TargetFinder.TargetSearchResult) implemented.

 

Im trying to migrate SimpleCloudHandler.cs script from this guide https://library.vuforia.com/content/vuforia-library/en/articles/Solution/How-To-Implement-Cloud-Reco.html to 8.0.10 Vuforia version.

targetsearchresult matadata error

March 24, 2019 - 9:12pm #3

thank you It helped.

targetsearchresult matadata error

March 18, 2019 - 6:21am #2

Hello,

Metadata is only included with Cloud Targets, and then only if it is uploaded to the associated target in the Target Manager or using VWS APIs.

https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1TargetFinder_1_1CloudRecoSearchResult.html#acbdedd5872c835d0bf37422f929c88a3

cloudRecoResult.MetaData

Thanks,

Vuforia Engine Support

Log in or register to post comments