---
title: "pauseAnimation(forKey:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnanimatable/pauseanimation(forkey:)"
---

# pauseAnimation(forKey:)

Pauses the animation attached to the object with the specified key.

## Declaration

```swift
func pauseAnimation(forKey key: String)
```

## Parameters

- `key`: A string identifying an attached animation.

## Discussion

Discussion This method has no effect if no animation is attached to the object with the specified key.

## See Also

### Pausing and Resuming Animations

- [resumeAnimation(forKey:)](scenekit/scnanimatable/resumeanimation(forkey:).md)
- [isAnimationPaused(forKey:)](scenekit/scnanimatable/isanimationpaused(forkey:).md)
