How to modify SUIText color by script using Java
In your Java class, do the following:
public class YourClass extends Component {
// creates a new SUIText, @AutoWired selects the component from this object
@AutoWired
private SUIText text;
// create a new color
public Color color = new Color(255, 255, 0, 0);
@Override
public void start() {
}
@Override
public void repeat() {
// change color of SUIText
text.setColor(color);
}
}