Display dynamic text instead of 3D object in vuforia android sample after image recognition?

Display dynamic text instead of 3D object in vuforia android sample after image recognition?



What I want to do is display text instead of 3D object in vuforia sample after image recognition. Like if I scan a shoe image, it should display the name of the shoe, brand and shoe details in real time.



I have browsed a lot but haven't been able to find solution to it.A code sample to do it would really help.




1 Answer
1



What u could do is Create a Image and download this asset from asset store . Select the image and in Inspector menu , Select source of the asset u downloaded according to your needs . After this create a text from ui and make it child of Image .
And in defaulttrackableevent create a new class with name of image


public Transform image;



and in tracking found


image.gameObject.SetActive(true);



and in tracking lost


image.gameObject.SetActive(false);



and after writing the code , just link the image to the defaulttrackableeventhandler script.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)