Make Mesh Disappear When HMD Gets Close

Hi. Trying to have a mesh disappear when the hmd gets close to it.

Ways of doing it might be animating with level sequencer and then animate the material to be transparent and then the animation would play when hmd gets close to it.

Or the mesh would despawn when hmd gets close.

What would be the node setup to make this work? Thanks.