MeshPart
MeshPart : BasePart
Overview
BasePart๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ปค์คํ ๋ฉ์๋ฅผ ํํํ๋ ๊ฐ์ฒด๋ก, ํด๋น ๋ฉ์์ ํํ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋ฌผ๋ฆฌ ์์ง์์ ์๋ฎฌ๋ ์ด์ ๋ฉ๋๋ค.
MeshPart์ ๋ชจ์๊ณผ ํ ์ค์ฒ๋ MeshId ์์ฑ๊ณผ TextureID ์์ฑ์ ์ํด ์ค์ ๋ฉ๋๋ค.
Properties
DoubleSided
bool
๋ฉ์๋ฅผ ์๋ฉด์ผ๋ก ๋ ๋๋งํ ์ง ์ฌ๋ถ๋ฅผ ๊ฒฐ์ ํ๋ ์์ฑ์ ๋๋ค.
์ข ์ด, ๋๋ญ์, ์์ ์ฒ ํ์ฒ๋ผ ์์ชฝ์์ ๋ชจ๋ ๋ณด์ฌ์ผ ํ๋ ๊ฒฝ์ฐ, ์ด ์์ฑ์ true๋ก ์ค์ ํ๋ฉด ๋ฉ์์ ์ยท๋ท๋ฉด์ด ๋ชจ๋ ๋ ๋๋ง๋์ด ์ด๋ ๋ฐฉํฅ์์ ๋ณด๋๋ผ๋ ํ๋ฉด์ด ํ์๋ฉ๋๋ค.
๋จ, ์๋ฉด ๋ ๋๋ง์ GPU ๋ถํ๋ฅผ ์ฆ๊ฐ์ํฌ ์ ์์ผ๋ฏ๋ก ๊ผญ ํ์ํ ๊ฒฝ์ฐ์๋ง ์ฌ์ฉํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
Code Samples
local MeshPart = script.Parent
print(MeshPart.DoubleSided)
MeshId
string
MeshPart์ ํํํ ๋ฉ์ฌ ์์ ์ ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
Code Samples
local MeshPart = script.Parent
print(MeshPart.MeshId)
TextureId
string
MeshPart์ ํํํ ํ ์ค์ณ ์์ ์ ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
Code Samples
local MeshPart = script.Parent
print(MeshPart.TextureId)
MeshSize
Vector3
๋ฉ์ฌ์ ์๋ ํฌ๊ธฐ๋ฅผ ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
Code Samples
local MeshPart = script.Parent
print(MeshPart.MeshSize)
EnableMeshShadowDetails
bool
Enables per-mesh shadow detail control. When true, the MeshShadowDetailLevel setting is applied to this MeshPart. Disable to use default engine shadow settings.
Code Samples
MeshShadowDetailLevel
Enum.ShadowDetailLevel
Sets the shadow detail level used when rendering this MeshPart.
Original: Use the original mesh shadow detail.
Medium: Reduce shadow detail for better performance.
Low: Lowest shadow detail for maximum performance.
Effective only when EnableMeshShadowDetails is true.
Code Samples
MeshIdContent
Content
{Description Slot}
Code Samples
TextureIdContent
Content
{Description Slot}
Code Samples
Methods
ApplyMesh
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Instance
InMeshPart
Return
void
Code Samples
Events
Last updated