How to modify SUIText text alignment by script using Java
In your Java class, do the following:
public class YourClasd extends Component {
// creates a new SUIText, @AutoWired selects the component from this object
@AutoWired
private SUIText text;
// create a new SETTextAlignment
public STextAlignment alignment; // select in properties
@Override
public void start() {
}
@Override
public void repeat() {
// change alignment of SUIText
text.setAlignment(alignment);
}
}