USkinnedMeshComponent::ShowMaterialSection

Allows hiding of a particular material (by ID) on this instance of a SkeletalMesh.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SkinnedMeshComponent.h

Include

#include "Components/SkinnedMeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp

Syntax

void ShowMaterialSection
(
    int32 MaterialID,
    int32 SectionIndex,
    bool bShow,
    int32 LODIndex
)

Remarks

Allows hiding of a particular material (by ID) on this instance of a SkeletalMesh.

Parameters

Parameter

Description

MaterialID

Index of the material show/hide

bShow

True to show the material, false to hide it

LODIndex

Index of the LOD to modify material visibility within