Contents

Models and meshes

Display virtual objects in your scene with mesh-based models.

Overview

Meshes are the building blocks for every visible geometric shape and model in RealityKit, including those that come from a USDZ file. Create primitive shapes by calling a MeshResource factory method, such as generateBox(size:cornerRadius:), or define your own mesh by creating and configuring a MeshDescriptor or a LowLevelMesh instance.

Display meshes in your scene by creating a ModelComponent for each mesh, and add that component to an entity. You can also add Material instances to your mesh by adding them to the same ModelComponent instance.

Topics

Model display

Render configuration

Static meshes

Updatable meshes

Bounding box retrieval

Text generation options

2D path extrusion for 3D mesh creation

Mesh description

Mesh skeletons

Mesh resource data

Blend shape management

Entity compliance

See Also

Scene content