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