Skip to content

Get material from raycast

Mike edited this page Jan 15, 2024 · 2 revisions

To do this, first start the ray using WORLDPROBE::_START_SHAPE_TEST_RAY, then get the result using WORLDPROBE::_GET_SHAPE_TEST_RESULT_EX, which has a parameter for the material.

Thanks to CamxxCore for the code to get all of the materials.

Clone this wiki locally