---
title: EmphasizeAction
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/emphasizeaction
---

# EmphasizeAction

An action that performs an animation to call attention to an entity.

## Declaration

```swift
struct EmphasizeAction
```

## Overview

Overview This action plays a preexisting animation, dependent on the style and motionType options. The example below creates an animation that causes the entity to bounce in a playful style. // An action that performs a bounce motion in a playful style. let emphasizeAction = EmphasizeAction(motionType: .bounce,                                       style: .playful,                                       isAdditive: false)

// A five second animation that plays the preexisting animation. // // This animation causes the entity to raise up, and then drop, // appearing to bounce on the ground in a playful style, // before returning to its original position. let playfulBounceAnimation = try AnimationResource     .makeActionAnimation(for: emphasizeAction,                          duration: 5.0,                          bindTarget: .transform)

// Play the five second emphasize animation that causes the entity to // bounce in a playful style. entity.playAnimation(playfulBounceAnimation) important: This action directly animates the BindTarget.transform on the bound entity. Ensure a correct bind target is supplied when creating the animation.

## Topics

### Initializers

- [init(motionType:style:isAdditive:)](realitykit/emphasizeaction/init(motiontype:style:isadditive:).md)

### Instance Properties

- [animatedValueType](realitykit/emphasizeaction/animatedvaluetype.md)
- [isAdditive](realitykit/emphasizeaction/isadditive.md)
- [motionType](realitykit/emphasizeaction/motiontype.md)
- [style](realitykit/emphasizeaction/style.md)

### Enumerations

- [EmphasizeAction.EmphasisAnimationStyle](realitykit/emphasizeaction/emphasisanimationstyle.md)
- [EmphasizeAction.EmphasisMotionType](realitykit/emphasizeaction/emphasismotiontype.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [EntityAction](realitykit/entityaction.md)

## See Also

### Built-in actions

- [BillboardAction](realitykit/billboardaction.md)
- [FromToByAction](realitykit/fromtobyaction.md)
- [ImpulseAction](realitykit/impulseaction.md)
- [OrbitEntityAction](realitykit/orbitentityaction.md)
- [PlayAnimationAction](realitykit/playanimationaction.md)
- [PlayAudioAction](realitykit/playaudioaction.md)
- [SetEntityEnabledAction](realitykit/setentityenabledaction.md)
- [SpinAction](realitykit/spinaction.md)
