ドキュメント

Unity Engine

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.