Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UModelComponent
- 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 |
virtual UMaterialInterface &42; GetMaterialFromCollisionFaceIndex
&40;
int32 FaceIndex,
int32 & SectionIndex
&41; const
Remarks
Try and retrieve the material applied to a particular collision face of mesh. Used with face index returned from collision trace. Material applied to section that the hit face belongs to
Parameters
| Name | Description |
|---|---|
| FaceIndex | Face index from hit result that was hit by a trace |
| SectionIndex | Section of the mesh that the face belongs to |