One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

MeshResource.Part

struct · iOS 15.0+ · SDK 27.1

struct Part

A part of a model consisting of a single material.

Members (12)

get · iOS 18.0+

skeletonID

TypeScript
get skeletonID(): Promise<(string) | null>
Swift declaration
var skeletonID: String? { get set }

Identifier of the skeleton that this mesh part is bound to (if it is skinned).

set · iOS 18.0+

skeletonID

TypeScript
setSkeletonID(value?: (string) | null): Promise<void>
Swift declaration
var skeletonID: String? { get set }

Identifier of the skeleton that this mesh part is bound to (if it is skinned).

get · iOS 15.0+

materialIndex

TypeScript
get materialIndex(): Promise<number>
Swift declaration
var materialIndex: Int { get set }

Material index for the part.

set · iOS 15.0+

materialIndex

TypeScript
setMaterialIndex(value: number): Promise<void>
Swift declaration
var materialIndex: Int { get set }

Material index for the part.

get · iOS 18.0+

jointInfluences

TypeScript
get jointInfluences(): Promise<(MeshResource_JointInfluences) | null>
Swift declaration
var jointInfluences: MeshResource.JointInfluences? { get set }

A buffer of vertex-joint influences which defines how the mesh deforms in response to the skeleton that it is bound to. Each vertex may be influenced by one or more joints defined by the skeleton.

set · iOS 18.0+

jointInfluences

TypeScript
setJointInfluences(value?: (MeshResource_JointInfluences) | null): Promise<void>
Swift declaration
var jointInfluences: MeshResource.JointInfluences? { get set }

A buffer of vertex-joint influences which defines how the mesh deforms in response to the skeleton that it is bound to. Each vertex may be influenced by one or more joints defined by the skeleton.

get · iOS 15.0+

triangleIndices

TypeScript
get triangleIndices(): Promise<(MeshBuffer<number>) | null>
Swift declaration
var triangleIndices: MeshBuffers.TriangleIndices? { get set }

Index buffer for triangles.

set · iOS 15.0+

triangleIndices

TypeScript
setTriangleIndices(value?: (MeshBuffer<number>) | null): Promise<void>
Swift declaration
var triangleIndices: MeshBuffers.TriangleIndices? { get set }

Index buffer for triangles.

init · iOS 15.0+

init

TypeScript
static init(id: string, materialIndex: number): Promise<MeshResource_Part>
Swift declaration
init(id: String, materialIndex: Int)

Create a new 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+

buffers

TypeScript
get buffers(): Promise<NativeMap<MeshBuffers_Identifier, AnyMeshBuffer>>
Swift declaration
var buffers: [MeshBuffers.Identifier : AnyMeshBuffer] { get }

Descriptors for the buffers.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MeshResource.Part.subscript(_:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

All RealityFoundation types →