I’m working with an Incisor TextBox and having trouble changing the colors. It seems that I cannot update the text and background colors independently. Here’s the code I’m using:
class ProjectMain {
init() {
let textBox = new TextBox();
textBox.string = "Hello World";
textBox.backgroundColor = new Color(0, 1, 0, 1); // Green background
textBox.colorMultiply.red = 1; // Attempting to make text red
textBox.colorMultiply.green = 0;
textBox.colorMultiply.blue = 0;
}
}
I expected the text to appear in red with a green background, but instead, I see red text on a black background.
However, if I remove my calls to colorMultiply, the background is green and the text is white.
let textBox = new TextBox();
textBox.string = "Hello World";
textBox.backgroundColor = new Color(0, 1, 0, 1); // Green background with white text
Could someone explain how to correctly set both the text color and the background color of the TextBox?