MeshPart
Last updated
MeshPart : BasePart
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
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.
local MeshPart = script.Parent
print(MeshPart.DoubleSided)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.
string
This property sets the mesh asset to be displayed on the MeshPart.
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.
Vector3
This property indicates the original size of the mesh.
string
This property sets the texture asset to be displayed on the MeshPart.
Last updated
local MeshPart = script.Parent
print(MeshPart.MeshId)local MeshPart = script.Parent
print(MeshPart.MeshSize)local MeshPart = script.Parent
print(MeshPart.TextureId)