<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RoomPlan",
  "identifier" : "/documentation/RoomPlan/CapturedRoom/Object",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RoomPlan"
    ],
    "preciseIdentifier" : "s:8RoomPlan08CapturedA0V6ObjectV"
  },
  "title" : "CapturedRoom.Object"
}
-->

# CapturedRoom.Object

A 3D area in a room that the framework identifies as an object.

```
struct Object
```

## Overview

A captured room contains an array of this type for the objects ([`objects`](/documentation/RoomPlan/CapturedRoom/objects)) it identifies.

## Topics

### Creating an object

[`init(from: any Decoder) throws`](/documentation/RoomPlan/CapturedRoom/Object/init(from:))

Creates an object by deserializing the specified decoder.

### Identifying an object

[`var identifier: UUID`](/documentation/RoomPlan/CapturedRoom/Object/identifier)

A unique alphanumeric value that the framework assigns the object.

[`var parentIdentifier: UUID?`](/documentation/RoomPlan/CapturedRoom/Object/parentIdentifier)

A unique alphanumeric value that identifies the object’s parent object or surface.

[`var category: CapturedRoom.Object.Category`](/documentation/RoomPlan/CapturedRoom/Object/category-swift.property)

A classification that the captured room assigns the object.

[`enum Category`](/documentation/RoomPlan/CapturedRoom/Object/Category-swift.enum)

Classifications of an object in a captured room.

[`var confidence: CapturedRoom.Confidence`](/documentation/RoomPlan/CapturedRoom/Object/confidence)

A level of certainty in the object’s category.

### Positioning and sizing an object

[`var transform: simd_float4x4`](/documentation/RoomPlan/CapturedRoom/Object/transform)

A matrix that defines the object’s position and orientation in the room.

[`var dimensions: simd_float3`](/documentation/RoomPlan/CapturedRoom/Object/dimensions)

A bounding box sized to the object’s extremities.

[`var story: Int`](/documentation/RoomPlan/CapturedRoom/Object/story)

The floor number or level on which the object resides.

### Describing an object

[`var attributes: [any CapturedRoomAttribute]`](/documentation/RoomPlan/CapturedRoom/Object/attributes)

A collection of details that describe a particular object in the room.

[`func attribute<T>(of: T.Type) -> T?`](/documentation/RoomPlan/CapturedRoom/Object/attribute(of:))

Checks an object for specific attribute types.

### Serializing an object

[`func encode(to: any Encoder) throws`](/documentation/RoomPlan/CapturedRoom/Object/encode(to:))

Serializes an object to the specified encoder.

## Relationships

### Conforms To

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

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

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

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

---

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)