<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnimationResource/sequence(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation17AnimationResourceC8sequence4withACSayACG_tKFZ"
  },
  "title" : "sequence(with:)"
}
-->

# sequence(with:)

Creates an animation resource that plays a collection of animations in a
specified sequence.

```
@MainActor @preconcurrency static func sequence(with resources: [AnimationResource]) throws -> AnimationResource
```

## Parameters

`resources`

The collection of animation resources to play.

## Return Value

An animation resource that plays the given array of
animations.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)