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
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
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?