Log in or register to post comments

Inserting MetaData into UI text

February 21, 2017 - 12:44am #1

I can successfully access the metadata associated with my cloud target, but I want to place that in the UI text location that I have created as a Target Asset. My biggest problem is that I need to access the UI text to set it to the metadata. Every different cloud target will have different metadata that I want to display, so I need to erase the text in the field, then set it to the new metadata. I can't seem to access the text to manipulate it. Any help pointing me in the correct direction would be appreciated.

Inserting MetaData into UI text

March 6, 2017 - 10:10pm #3

I figured it out. It turns out that the problem was associated with the web cam on my development system. It works fine on my laptop with the exact same code.

Inserting MetaData into UI text

February 21, 2017 - 8:47pm #2

This may help by showing what isn't working right now.

 in CloudRecoTracableEventHandler  I have the following code


  mCanvas.GetComponent<Canvas> ().enabled = true;

  Debug.Log ("Text is  " + mText.getComponent<Text>());


The first line merely enables and disables the canvas on target found/lost.

The second line is attempting to print out the existing text in the Text component of the canvas game object that was created using -- GameObject-UI-Text.

both mCanvas and mText are public GameObjects


Log in or register to post comments