Build overlapping 3D widget panel(with depth like z axis) for HUD and animation

  • In back one (the one currently needs to be masked) make a retainer box and make everything is child of it.
  • Create a new material with UI Transparent domain.

put this shader inside and arrange the visibility parameter, whichever object is behind make its MaskVisibility parameter 1