How to change material by icon when playing?

Look at this Instanced Materials in Unreal Engine | Unreal Engine 5.2 Documentation