How to modify SUIText text 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;
// creates a new integer
private int value = 1;
@Override
public void start() {
}
@Override
public void repeat() {
// change the text of the SUIText
text.setText("My value is " + value);
}
}