UProceduralMeshComponent::GetMaterialFromCollisionFaceIndex

Try and retrieve the material applied to a particular collision face of mesh.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::GetMaterialFromCollisionFaceIndex()

UProceduralMeshComponent::GetMaterialFromCollisionFaceIndex()

References

Module

ProceduralMeshComponent

Header

/Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h

Include

#include "ProceduralMeshComponent.h"

Source

/Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Private/ProceduralMeshComponent.cpp

Syntax

virtual UMaterialInterface * GetMaterialFromCollisionFaceIndex
(
    int32 FaceIndex,
    int32 & SectionIndex
) const

Remarks

Try and retrieve the material applied to a particular collision face of mesh. Used with face index returned from collision trace.

Returns

Material applied to section that the hit face belongs to

Parameters

Parameter

Description

FaceIndex

Face index from hit result that was hit by a trace

SectionIndex

Section of the mesh that the face belongs to

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