There are spinning throbbers or progress bars available in the UI toolkit yet. Something like this:

So I was trying to create my own one. I created a throbber image and added it is a background to a visual element. I managed to add a updating function to my visual element that would update the rotation of the throbber.
After having written this code:
public void Initialize(bool showScreen)
{
throbberTransform = this.Q<VisualElement>("ThrobberElement").transform;
UpdateManagerBehaviour.OnFixedUpdate += UpdateThrobberRotation;
}
//This function gets called like the "FixedUpdate" unity function
private void UpdateThrobberRotation()
{
currentThrobberRotation += ThrobberRotationSpeed;
throbberTransform.rotation = Quaternion.Euler(0, 0, currentThrobberRotation);
}
I realized that the throbber was being rotated not around the enter of the image, but around the upper left corner of it.
In light of what I have told you I have 2 question:
- Will unity provide some out of the box solution to make this easier?
- How can I make the throbber spin around its center instead of its uppper left corder? There does not seem to be way to change its anchor.
