Create a material thats visible to a specific camera only?

Hi All,

I am trying to create a feature in my game that the player actor can only see ghosts by using a special set of glasses.

The idea:
To create a material (a ghost material) that only a CaptureComponent2D (render target material) can ‘see’ and have that material applied to the lens of the special glasses.

Has anyone tried this before? Is the logic right or is there a better way to achieve this type of feature?

What I have tried:

  • Making ghost actors visible to only to owner (the glasses with CapComp2d material) but since the glasses are part of the actor blueprint, the actor can see them anyway.

Any help would be appreciated!

Thank you,