Logo
Animation

Spinner

Animate a rotating or filling loading indicator

Overview

Spinner animates a loading indicator using a Procedural Shape or an Image.

Preview

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

NameTypeDescription
rotationSpeedfloatAnimation speed.
minFillAmountfloatMinimum animated fill.
maxFillAmountfloatMaximum animated fill.
easeEaseEvo Tween easing mode.
customEaseAnimationCurveCurve used by custom easing.
spinnerShapeProceduralShapeProcedural Shape target.
spinnerImageImageUnity Image target.

Methods

NameParametersDescription
StartSpinning()NoneStarts animation.
StopSpinning()NoneStops animation.
SetSpinnerStyle()SpinnerStyle styleChanges the animation style.

Example

SpinnerExample.cs
using UnityEngine;
using Evo.UI;

public class SpinnerExample : MonoBehaviour
{
    [SerializeField] private Spinner target;

    private void Start()
    {
        target.rotationSpeed = 1.2f;
        target.StartSpinning();
    }
}

On this page