Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UStaticMeshComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/StaticMeshComponent.h |
| Include | #include "Components/StaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/StaticMeshComponent.cpp |
void SetMaterialPreview
(
int32 InMaterialIndexPreview
)
Remarks
Sets the value of the MaterialIndexPreview flag and reattaches the component as necessary.
Parameters
| Name | Description |
|---|---|
| InMaterialIndexPreview | New value of MaterialIndexPreview. |