Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AnimationIterationCount

Represents the number of times an animation repeats, used by the animation-iteration-count style property. The count is either a finite number of iterations or AnimationIterationCount.Infinite.
Read time 1 minuteLast updated 13 days ago

Definition

public readonly struct AnimationIterationCount : IEquatable<AnimationIterationCount>

Constructors

Constructor

Description

AnimationIterationCount(System.Single)Creates a finite iteration count. Negative values clamp to 0 (0 is valid: the animation is applied but does not play).

Properties

Property

Description

valueThe number of iterations. Is PositiveInfinity when the count is infinite.

Methods

Method

Description

IsInfiniteWhether the animation repeats forever.

Static Methods

Method

Description

InfiniteA count that repeats the animation forever.