How to mask out objects in Render Targets while retaining Post Processing?

Hi,

I need some help figuring out Render Target Masking options!

Here is my scenario:

  • I have Object A & B in Player view
  • I want to show Object B in my HUD via Render Target with ALL of its post processing and lighting applied. (I don’t mind using Custom render depth passes and stencils, if needed)
  • I want to mask out everything else except for Object B in the HUD

Is this possible? If so, what is the material setup and Render Target options to make this happen?

Any help is appreciated!

Thanks!