MeshBatch

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

ShotInstancenot creatablecomingMeshes and 3D

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

NameTypeDefaultDescription
TextureGpuTexture?
InstanceCountnumberread-only

Methods

NameArgumentsReturnsDescription
AddInstance(cframe: CFrame, size: Vector3, color: Color3?)numberAdds 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