Animation
Spinner
Animate a rotating or filling loading indicator
Overview
Spinner animates a loading indicator using a Procedural Shape or an Image.
Usage
Add Spinner to the loading indicator.
Assign Spinner Shape or Spinner Image.
Choose a spinner style and configure its speed and fill range.
Start and stop it when loading begins and ends.
Notes
Spinner is a visual activity indicator. It does not measure task progress; use Progress Bar when a known completion value is available.
Public API
Use Spinner in the Evo.UI namespace.
Fields
| Name | Type | Description |
|---|---|---|
rotationSpeed | float | Animation speed. |
minFillAmount | float | Minimum animated fill. |
maxFillAmount | float | Maximum animated fill. |
ease | Ease | Evo Tween easing mode. |
customEase | AnimationCurve | Curve used by custom easing. |
spinnerShape | ProceduralShape | Procedural Shape target. |
spinnerImage | Image | Unity Image target. |
Methods
| Name | Parameters | Description |
|---|---|---|
StartSpinning() | None | Starts animation. |
StopSpinning() | None | Stops animation. |
SetSpinnerStyle() | SpinnerStyle style | Changes the animation style. |
Example
using UnityEngine;
using Evo.UI;
public class SpinnerExample : MonoBehaviour
{
[SerializeField] private Spinner target;
private void Start()
{
target.rotationSpeed = 1.2f;
target.StartSpinning();
}
}