UModelComponent::GetMaterialFromCollisionFaceIndex

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

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::GetMaterialFromCollisionFaceIndex()

UModelComponent::GetMaterialFromCollisionFaceIndex()

References

Module

Engine

Header

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

Include

#include "Components/ModelComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/ModelComponent.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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback