Change material parameters by object position (animation)

Alright, I finally discovered it. I have to check “generate overlap events” in collisions details for my mesh to activate the change.