How i update a variable inside my widget blueprint from my blueprint actor and make it to work even if blueprint actor have more than one copy (instance) in the game?

[I need to create a blueprint or widget with the help of that I would be able to remove materials of selected static mesh from its editor but not not from details panels. can anyone create this]

please help if its possible