<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/MeshResource/GenerateTextOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation12MeshResourceC19GenerateTextOptionsV"
  },
  "title" : "MeshResource.GenerateTextOptions"
}
-->

# MeshResource.GenerateTextOptions

A type that determines the configuration for rendering text in 2D,
before it is extruded.

```
struct GenerateTextOptions
```

## Topics

### Initializers

[`init()`](/documentation/RealityKit/MeshResource/GenerateTextOptions/init())

### Instance Properties

[`var containerFrame: CGRect?`](/documentation/RealityKit/MeshResource/GenerateTextOptions/containerFrame)

The size in points of the frame where the text is laid out.

## Relationships

### Conforms To

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

[`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)