How to affect blueprint of only one actor placed in the level


I would need to find a way to change material of an actor, but so that only one actor changes, not them all. In the script, the material of the actor changes when cursor is over it. The problem is, this changes the material of all the actors placed in the level, while I need that only the actor changes that the cursor points. Attached is a screenshot of what I have tried but with no luck so far (the target cube self reference did not work). I also thought it might be done somehow through the actors construction script > local variable, but have not been able to figure it out.

Create actor blueprint and add these to your actor:

but for this to work you will need a player controller and inside player controller you need to enable these:


Thank you!