var label = new AR.Label("This is a test", 0.30, { offsetX: 0, offsetY: -0.20, style:{ textColor: "#ffffff", backgroundColor: "#000000" } });
I've added it to the Trackable2DObject. Its hows up on the screen. In multiple fuctions in the World class I have called
this.label.text = "Here";
The text NEVER changes. I can't for the life of m,e figure out what is going on.
I have tried World.label.text = "Here";
Nothing
Any help please. I've spent hours trying to change the text in a label!!!!!!!!!
1 Comment
Wikitude Support
said
almost 7 years ago
Hi Wilson,
Please refer to the documentation here in order to understand how to create a label and what are the parameters required in order to be able to change its content.
Wilson Bell
I have this in my World class
var label = new AR.Label("This is a test", 0.30, {
offsetX: 0,
offsetY: -0.20,
style:{
textColor: "#ffffff",
backgroundColor: "#000000"
}
});
I've added it to the Trackable2DObject. Its hows up on the screen. In multiple fuctions in the World class I have called
this.label.text = "Here";
The text NEVER changes. I can't for the life of m,e figure out what is going on.
I have tried World.label.text = "Here";
Nothing
Any help please. I've spent hours trying to change the text in a label!!!!!!!!!