---
title: "init(named:rootJoint:animationEvaluation:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/skeletonresource/init(named:rootjoint:animationevaluation:)"
---

# init(named:rootJoint:animationEvaluation:)

Creates a skeleton resource with the specified name, joint hierarchy, and animation-evaluation data.

## Declaration

```swift
convenience init(named name: String, rootJoint: SkeletonResource.Joint, animationEvaluation: SkeletonResource.AnimationEvaluation = .init()) throws
```

## Parameters

- `name`: A unique identifier for the skeleton, used by the animation runtime to link animation clips and retargeting configurations to this skeleton.
- `rootJoint`: The root joint of the skeleton hierarchy.
- `animationEvaluation`: Additional animation-related skeletal data to bake into the resource. Defaults to empty.

## Discussion

Discussion note: If the joint hierarchy contains invalid data, or if the underlying resource cannot be created.
