ModelPart Type
One drawable slice of a content-pipeline Model: a zero-copy wrap of the part's shared vertex/index buffers plus everything a slice draw needs — the part's buffer offsets, its absolute parent-bone transform, and its material.
The content pipeline packs a whole model into shared buffers and stores
vertices bone-local, so a part can only be drawn by slice (Draw.meshSlice /
Draw.instancedSlice with ModelPart.VertexOffset and
ModelPart.StartIndex) and its bone must be folded in front
of every world/instance transform — stock ModelMesh.Draw does both
internally. Resolve with ModelParts.ofModel.
Static models only. The instanced draw path carries no bone palette,
so skinned parts (baked with SkinnedEffect) render in their bind pose.
Use Draw.animatedModelInstanced for skinned models.
Record fields
| Record Field |
Description
|
The part's absolute parent-bone transform (
|
|
|
Material read from the part's baked pipeline effect (Material3D.fromModelMeshPart).
|
|
Zero-copy wrap of the model's shared buffers.
|
Full Usage:
StartIndex
Field type: int
|
The part's first index in the shared index buffer — pass as the
|
Full Usage:
VertexOffset
Field type: int
|
The part's first vertex in the shared vertex buffer — pass as the
|
Mibo