<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/EntityTabletop",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TabletopKit",
      "RealityKit"
    ],
    "preciseIdentifier" : "s:020_TabletopKit_RealityB006EntityA0P"
  },
  "title" : "EntityTabletop"
}
-->

# EntityTabletop

A protocol for the table surface in your game when you render it using RealityKit.

```
protocol EntityTabletop : Tabletop
```

## Overview

To create a [`TableSetup`](/documentation/TabletopKit/TableSetup) object that configures your game table, pass an object that conforms to either the [`Tabletop`](/documentation/TabletopKit/Tabletop) or `EntityTabletop` protocol to the `TableSetup` initializer. If you render your table surface using RealityKit, conform to the `EntityTabletop` protocol. Implement your `EntityTabletop` structure to set the protocol properties, such as the `shape`, `entity`, and `id` properties.

```swift
struct Table: EntityTabletop {
    var shape: TabletopShape
    var entity: Entity
    var id: EquipmentIdentifier
    
    init() {
        self.entity = try! Entity.load(named: "table/table", in: contentBundle)
        self.shape = .round(entity: entity)
        self.id = .table
    }
}
```

## Topics

### Creating a round or rectangular table

[`var shape: TabletopShape`](/documentation/TabletopKit/EntityTabletop/shape)

The shape of the table.

### Displaying the tabletop

[`var entity: Entity`](/documentation/TabletopKit/EntityTabletop/entity)

The entity associated with the equipment.

### Default Implementations

[Tabletop Implementations](/documentation/TabletopKit/EntityTabletop/Tabletop-Implementations)

## Relationships

### Inherits From

[`Identifiable`](/documentation/Swift/Identifiable)

[`Tabletop`](/documentation/TabletopKit/Tabletop)

---

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)