One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MeshResource.GenerateTextOptions

struct · iOS 18.0+ · SDK 27.1

struct GenerateTextOptions

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

Members (3)

get · iOS 18.0+

containerFrame

TypeScript
get containerFrame(): Promise<({ x: number; y: number; width: number; height: number }) | null>
Swift declaration
var containerFrame: CGRect?

The size in points of the frame where the text is laid out. The points are scaled at a ratio of 72 points per meter. The container frame has the same origin as the local coordinate system. - Note: Use a value of `nil` to denote an arbitrarily large frame.

set · iOS 18.0+

containerFrame

TypeScript
setContainerFrame(value?: ({ x: number; y: number; width: number; height: number }) | null): Promise<void>
Swift declaration
var containerFrame: CGRect?

The size in points of the frame where the text is laid out. The points are scaled at a ratio of 72 points per meter. The container frame has the same origin as the local coordinate system. - Note: Use a value of `nil` to denote an arbitrarily large frame.

init · iOS 18.0+

init

TypeScript
static init(): Promise<MeshResource_GenerateTextOptions>
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →