how do I set a material to a static mesh with the OnBeginCursorOver event

All of this is in one class blueprint. My Event BeginPlay creates a grid of tiles. I can click wherever and get x and y coordinates relative to my grid. No problems here but now you get a sense of what I’m doing. Below my Event BeginPlay, I have the OnBeginCursorOver event execution wire going into the static mesh component variable setter and then to the set material function. When play begins the material does not change when I mouse over a static mesh from my grid. Here is a link to a video showing the problem

You need to use Material Instance Dynamic, you cannot replace the material after the game has started.
If you need more information, there are a ton of similar questions to look at. I’m not going to elaborate this again.

Here is a picture of my class blueprint for my grid. I changed the materials to instanced materials and still it doesn’t work. Do I need to reference the tile variable somewhere else?

Here is another video showing what I’ve done so far. Also a link to the video I tutorial I used. I feel like I have everything correct, but it still wont work.
https://youtu.be/Lm5fzDdnAuU

https://youtu.be/C9er98e_R9A

https://youtu.be/srUSDU1u0og

https://youtu.be/i2XmTbfIJ3s

video one, right at the start: the “select material” is not set! you obviously would have to choose the material here :slight_smile:

Thank you for the help. It’s working great