MeshPart
MeshPart : BasePart
Overview
This object represents a custom mesh based on BasePart, which is simulated in the physics engine based on the mesh's shape.
The MeshId and TextureID properties determines the shape and texture of MeshPart
Properties
DoubleSided
boolean
This property determines whether the mesh is rendered on both faces.
For cases like paper, leaves, or thin metal plates that need to be visible from both sides, setting this property to true renders both the front and back faces of the mesh, ensuring the surface is visible from any direction.
However, as double-sided rendering can increase load on GPU, it should only be used when necessary.
Code Samples
local MeshPart = script.Parent
print(MeshPart.DoubleSided)EnableMeshShadowDetails
boolean
Determines whether to enable the shadow detail setting for the MeshPart.
When this option is enabled, the mesh's individual setting takes priority over the Lighting service's global setting.
Code Samples
MeshId
string
This property sets the mesh asset to be displayed on the MeshPart.
Code Samples
MeshShadowDetailLevel
Enum.ShadowDetailLevel
Setting the shadow detail level of the MeshPart.
If the value of MeshShadowDetailLevel is set to Original, it render shadows with precise detail matching the original mesh shape. Medium or Low settings render shadows in simpler forms.
Code Samples
MeshSize
Vector3
This property indicates the original size of the mesh.
Code Samples
TextureId
string
This property sets the texture asset to be displayed on the MeshPart.
Code Samples
Methods
Events
Last updated