Unable to see in world VR widget with DX12 and Raytracing enabled

Just want to document it here for my future self or anyone having the same issue. After I changed my RHI to use DX12 for raytracing reflection, I found that my VR menu can not be seen anymore.

Steps to recreate this:

  1. Open CollabViewer Template
  2. Go into VR preview, use controller “A” or “X” button to toggle VR menu.
  3. Change RHI to DX12, and enable raytacing reflection. (reflection might be unrealted)
  4. Go into VR preview, press controller “A” or “X” button, unable to see VR menu now.

Solution:
Check the widget component material, if it is using translucent or alphacomposite, change it to masked.