---
title: "init(id:joints:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/meshresource/skeleton/init(id:joints:)"
---

# init(id:joints:)

Creates a skeleton from an array of joints.

## Declaration

```swift
init(id: String, joints: [MeshResource.Skeleton.Joint])
```

## Discussion

Discussion important: The order of joints in this array is significant; parents need to precede their children.
