Log in or register to post comments

Get Metadata as text on Canvas

August 19, 2020 - 8:30am #1



I'm doing a little app in unity for my android project, that shows additional information about a product (Cloud Image Target) when it is scanned and I would like to use the metadata that is attached to the target to be displayed as text on a canvas on the AR camera (not as a gui box).

If someone could help me with this small part.

Thank you!

Get Metadata as text on Canvas

June 14, 2021 - 12:22pm #5

Hello @maazshaikh1711

as already mentioned in the previous posts you can load the Vuforia Core Examples from the Unity Asset Store (Vuforia Core Samples)

When you open a project where the Core Examples asset is loaded you can go to Assets/SampleResourcese/Scenes in the current Unity Project and open the scene 3-CloudReco There you could find code which demonstrates how to read a cloud image target and to display a related 3d object to it but also it displays the meta data to the scanned Cloud image target. In the example picture below is a test:

So there is an info shown on a UI canvas created on runtime.

Another more simple example is based on the article:How to Use Cloud Recognition - first section - related to Unity3d)

There the selection of the displayed 3d model is based on the received metadata and info is shown in UI box:

I attached the sample code SimpleCloudRecoEventHandlerCase.cs ->  example based on the mentioned article where in the callback OnNewSearchResult the metadata is handled:

mTargetMetadata = cloudRecoSearchResult.MetaData;





Vuforia Engine Support


Get Metadata as text on Canvas

June 14, 2021 - 9:57am #4


Did you got the solution for the same?

If you did, please let me know its solution too.

I'm in need of it.


Get Metadata as text on Canvas

June 14, 2021 - 9:56am #3


Get Metadata as text on Canvas

August 28, 2020 - 2:51am #2


We demo the Cloud Reco feature in our Core Sample app available in the Unity Asset store.

Could you please go over our Cloud Reco scene? this should point you in the right direction.

Thank you.

Vuforia Engine Support

Log in or register to post comments