One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MeshResource.Model

struct · iOS 15.0+ · SDK 27.1

struct Model

A model consists of a list of parts.

Members (6)

init · iOS 15.0+

init

TypeScript
static initIdDescriptors(modelID: string, descriptors: Array<MeshDescriptor>): Promise<MeshResource_Model>
Swift declaration
@MainActor @preconcurrency init(id modelID: String, descriptors: [MeshDescriptor]) throws
init · iOS 15.0+

init

TypeScript
static initIdParts(id: string, parts: Array<MeshResource_Part>): Promise<MeshResource_Model>
Swift declaration
init(id: String, parts: [MeshResource.Part])
get · iOS 15.0+

id

TypeScript
get id(): Promise<string>
Swift declaration
var id: String

The stable identity of the entity associated with this instance.

set · iOS 15.0+

id

TypeScript
setId(value: string): Promise<void>
Swift declaration
var id: String

The stable identity of the entity associated with this instance.

get · iOS 15.0+

parts

TypeScript
get parts(): Promise<MeshPartCollection>
Swift declaration
var parts: MeshPartCollection

Table of parts composing this mesh.

set · iOS 15.0+

parts

TypeScript
setParts(value: MeshPartCollection): Promise<void>
Swift declaration
var parts: MeshPartCollection

Table of parts composing this mesh.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →