---
title: SkeletonResource
framework: realitykit
role: symbol
role_heading: Class
path: realitykit/skeletonresource
---

# SkeletonResource

Represents a skeleton asset with joint hierarchy and animation capabilities.

## Declaration

```swift
final class SkeletonResource
```

## Overview

Overview SkeletonResource is the single type for defining and using skeletons. It encapsulates the joint hierarchy together with additional animation-related skeletal data into one self-contained, immutable animation resource. Basic Usage Create a skeleton resource with joints and (optionally) animation-evaluation data: typealias Joint = SkeletonResource.Joint let skeleton = try SkeletonResource(     named: "Character",     rootJoint: try Joint("Root") {         try Joint("Spine")     },     animationEvaluation: .init(         ikResources: [ikResource1, ikResource2],         blendMasks: blendMasks     ) ) Related Types SkeletonResource.Joint - Represents a single joint in the skeleton hierarchy SkeletonResource.AnimationEvaluation - Bundle of additional animation-related skeletal data SkeletonResource.BlendMask - Defines selective weighting for joint animation control

## Topics

### Creating a skeleton resource

- [init(named:rootJoint:animationEvaluation:)](realitykit/skeletonresource/init(named:rootjoint:animationevaluation:).md)

### Defining the joint hierarchy

- [rootJoint](realitykit/skeletonresource/rootjoint.md)
- [SkeletonResource.Joint](realitykit/skeletonresource/joint.md)
- [SkeletonResource.JointBuilder](realitykit/skeletonresource/jointbuilder.md)

### Configuring animation evaluation

- [animationEvaluation](realitykit/skeletonresource/animationevaluation-swift.property.md)
- [SkeletonResource.AnimationEvaluation](realitykit/skeletonresource/animationevaluation-swift.struct.md)
- [SkeletonResource.BlendMask](realitykit/skeletonresource/blendmask.md)

### Initializers

- [init(from:)](realitykit/skeletonresource/init(from:).md)

### Instance Properties

- [name](realitykit/skeletonresource/name.md)

## Relationships

### Conforms To

- [Resource](realitykit/resource.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Skeletons and retargeting

- [RetargetingConfiguration](realitykit/retargetingconfiguration.md)
