Invisble enemies that can be seen though an item the player equips

I am trying to make a mechanic where an enemy is invisible, but if the player equips an item, let’s say it some glasses the enemy is visible through the lenses. So the part of the enemy seen though the lens is visible, the part outside is not visible. How can I achieve this effect?

1 Like