Get material from raycast - 5mods/tutorials GitHub Wiki

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.