Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

AnimationIterationCount

struct in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

Property Description
value The number of iterations. Is Single.PositiveInfinity when the count is infinite.

Constructors

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

Public Methods

Method Description
IsInfinite Whether the animation repeats forever.

Static Methods

Method Description
Infinite A count that repeats the animation forever.