| 构造器 | 说明 |
|---|---|
RenderMeshComponent() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
ResourceHandle |
getMaterial() |
Obtains the resource handle to the mesh material descriptor.
|
ResourceHandle |
getMesh() |
Obtains the resource handle to the mesh descriptor.
|
boolean |
isCastShadowsEnabled() |
Checks whether the mesh casts shadows.
|
void |
setCastShadowsEnabled(boolean isCastShadowsEnabled) |
Sets whether the mesh will cast shadows.
|
void |
setMaterial(ResourceHandle material) |
Sets the resource handle to the mesh material descriptor.
|
void |
setMesh(ResourceHandle mesh) |
Sets the resource handle to the mesh descriptor.
|
public ResourceHandle getMesh()
public void setMesh(ResourceHandle mesh)
mesh - Indicates the resource handle to set.public ResourceHandle getMaterial()
public void setMaterial(ResourceHandle material)
material - Indicates the resource handle to set.public boolean isCastShadowsEnabled()
true if the mesh casts shadows; returns false otherwise.public void setCastShadowsEnabled(boolean isCastShadowsEnabled)
isCastShadowsEnabled - Specifies whether the mesh will cast shadows. true indicates that the
shadows will be cast, and false indicates the opposite.