Get Material from Collision Face Index

Get Material from Collision Face Index

Windows
MacOS
Linux

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

Target is Primitive Component

Get Material from Collision Face Index
Target
Face Index
0
Section Index
0
Return Value
Select Asset

Inputs

Target
Primitive Component Object Reference
Face Index
Integer

Face index from hit result that was hit by a trace

Outputs

Section Index
Integer

Section of the mesh that the face belongs to

Return Value
Material Interface Object Reference

Material applied to section that the hit 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