MeshBatch
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Draw many copies of one mesh in a single call, for maps, icons and thumbnails.
Get one from GpuService:CreateMeshBatchAsync(mesh, texture). Add a copy per CFrame and Size, optionally coloured, then a RenderCamera draws your batches into colour, depth, normal and position textures, ready for an ImageProcessor.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Texture | GpuTexture? | ||
| InstanceCount | number | read-only |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| AddInstance | (cframe: CFrame, size: Vector3, color: Color3?) | number | Adds one copy of the mesh at a CFrame and Size, optionally coloured. |
| SetInstance | (index: number, cframe: CFrame, size: Vector3, color: Color3?) | () | |
| Clear | () | () |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
