Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UModelComponent
Description
Try and retrieve the material applied to a particular collision face of mesh. Used with face index returned from collision trace.
Virtual Inheritance
- UPrimitiveComponent::GetMaterialFromCollisionFaceIndex → UModelComponent::GetMaterialFromCollisionFaceIndex
| Name | GetMaterialFromCollisionFaceIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/ModelComponent.h |
| Include Path | #include "Components/ModelComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ModelComponent.cpp |
virtual UMaterialInterface * GetMaterialFromCollisionFaceIndex
(
int32 FaceIndex,
int32 & SectionIndex
) const
Material applied to section that the hit face belongs to
Parameters
| Name | Remarks |
|---|---|
| FaceIndex | Face index from hit result that was hit by a trace |
| SectionIndex | Section of the mesh that the face belongs to |