How to modify SUICircularProgressBar mask length by script using Java
In your Java class, do the following:
public class YourClass extends Component {
// to control the length
public float length = 50f; // change by properties
// creates a new SUICircularMask, @AutoWired selects the component from this object
@AutoWired
private SUICircularMask mask;
@Override
public void start() {
}
@Override
public void repeat() {
// sets the length of the SUICircularMask of the SUICircularProgressBar
mask.setLength(length);
}
}