UStaticMeshComponent::SetMaterialPreview

Sets the value of the MaterialIndexPreview flag and reattaches the component as necessary.

Windows
MacOS
Linux

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

Syntax

void SetMaterialPreview
(
    int32 InMaterialIndexPreview
)

Remarks

Sets the value of the MaterialIndexPreview flag and reattaches the component as necessary.

Parameters

Parameter

Description

InMaterialIndexPreview

New value of MaterialIndexPreview.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss