How to modify SUIImage texture border type by script using Java.md
In your Java class, do the following:
public class YourClass extends Component {
// creates a new SImageType
public SImageType type; // select in properties
// creates a new SUIImage, @AutoWired selects the component from this object
@AutoWired
private SUIImage image;
@Override
public void start() {
}
@Override
public void repeat() {
// change the type of the SUIImage
image.setType(type);
}
}