Change Object Layer

Hey guys I can’t seem to find a clear answer, figured I would ask. How would I change the layer of an Object when the player is near? Some kind of collision perhaps?

I would add Box Collider to this object and check isTriggered on it, make it big enough to suits your needs. Then, in script, I would check if Collision is existing → then change Collider’s layer to another.