---
title: AnimationStateProtocol
framework: realitykit
role: symbol
role_heading: Protocol
path: realitykit/animationstateprotocol
---

# AnimationStateProtocol

The protocol representing the current animation state of an action animation.

## Declaration

```swift
protocol AnimationStateProtocol
```

## Overview

Overview The animation state allows actions to animate a target value using RealityKit’s animation engine. Animating values with the animation engine allows for cross-fading and additive compositing with other RealityKit animations targeting the same value. Access the animation state structure from the event structure returned to .updated event handlers. Define a valid bind target and matching animation type to make the state structure available and non nil. note: Custom actions don’t support animating BlendShapeWeights.

## Topics

### Associated Types

- [ValueType](realitykit/animationstateprotocol/valuetype.md)

### Instance Properties

- [defaultSource](realitykit/animationstateprotocol/defaultsource.md)
- [defaultTarget](realitykit/animationstateprotocol/defaulttarget.md)
- [deltaTime](realitykit/animationstateprotocol/deltatime.md)
- [evaluationTime](realitykit/animationstateprotocol/evaluationtime.md)
- [normalizedTime](realitykit/animationstateprotocol/normalizedtime.md)

### Instance Methods

- [storeAnimatedValue(_:)](realitykit/animationstateprotocol/storeanimatedvalue(_:).md)

## Relationships

### Conforming Types

- [AnimationState](realitykit/animationstate.md)

## See Also

### Action events

- [ActionEvent](realitykit/actionevent.md)
- [AnimationState](realitykit/animationstate.md)
- [ActionEventType](realitykit/actioneventtype.md)
- [ActionEventDefinition](realitykit/actioneventdefinition.md)
