Download

Change material of a Line Traced Object

Hello guys,

I googled, not exactly what I need or too complicated, so sorry, I need to ask:

So I do line trace on an actor with a cube mesh

I need to change material of the actor, which has no material assigned at first

I cannot figure out how to proceed after Hit Result? I tried Cast To Static Mesh Component, compiled is yellow: says it would always fail …

I have Hit Actor, no idea what to Cast To, etc …

Please help

Did some googling this is what I found :stuck_out_tongue:

https://answers.unrealengine.com/questions/44139/texture-change-with-blueprint.html

tnx for your effort!

Glad to have helped I learned something also.