class TestGltfAnimation


A test-only data class that mirrors the properties of a GltfAnimation.

This is used to define the characteristics of an animation to be added to a GltfModelEntityTester for testing purposes.

Summary

Nested types

Builder for TestGltfAnimation.

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Float

The duration of the animation in seconds.

Int

The index of the animation in the glTF model file.

String?

The optional name of the animation.

Float

Retrieves the seek start time (in seconds) for the animation.

Boolean

Checks whether the animation is currently configured to loop.

Float

Retrieves the current playback speed of the animation.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

animationDuration

Added in 1.0.0-alpha16
val animationDurationFloat

The duration of the animation in seconds.

animationIndex

Added in 1.0.0-alpha16
val animationIndexInt

The index of the animation in the glTF model file.

animationName

Added in 1.0.0-alpha16
val animationNameString?

The optional name of the animation.

seekStartTime

Added in 1.0.0-alpha16
val seekStartTimeFloat

Retrieves the seek start time (in seconds) for the animation.

This reflects the underlying runtime state typically configured when starting the animation via GltfAnimation.start.

Returns
Float

The seek start time of the animation in seconds.

shouldLoop

Added in 1.0.0-alpha16
val shouldLoopBoolean

Checks whether the animation is currently configured to loop.

This reflects the underlying runtime state typically modified by GltfAnimation.start.

Returns
Boolean

true if the animation is set to loop, false otherwise.

speed

Added in 1.0.0-alpha16
val speedFloat

Retrieves the current playback speed of the animation.

This reflects the underlying runtime state typically modified by GltfAnimation.start or GltfAnimation.setSpeed.

Returns
Float

The playback speed multiplier of the animation.