Log in or register to post comments

Adding text over augmented game object

May 31, 2018 - 8:12pm #1

Hi can you tell me how to show those text over augmented motor model. Currently I tried like:

Added a cube to image target.

Added a canvas with text object.

Using script I attached that text to cube in update method like:

GameObject cube = GameObject.FindGameObjectWithTag ("boomEffect");

Vector3 pos = cube.transform.localPosition;

pos.y = pos.y + 10;

note.transform.position = pos;



note is text object. boomEffect is tag to cube.

I want to achive this kind of effect:

https://youtu.be/nHfY56lHZjU?t=11s.

But It's not working plz Help.

Adding text over augmented game object

June 10, 2018 - 10:42am #3

Hi....I found answer for question. I used this script namely hovering_text.js: https://pastebin.com/j2inUHEU.

I have

1. Attached this script to canvas text object.

2.Disable text component of text game object.

3.Drag image target child game object with is simple cube in my case to hovering_text.js target variable.

Done.

Thanks again for your support....!!!!!

 

Adding text over augmented game object

June 5, 2018 - 10:04am #2

Hello AmRahul,

What behaviour are you seeing? Is your target being detected? Do you have code to display this object upon detecting your target? What type of target are you using?

Thanks,

Vuforia Support

Log in or register to post comments