How to change/replace material through trigger volume?

To me it seems that the first method is better.