Hey omgitstri and jeanfabre,
I tried it, but it didn't work. When I use layer mask for UI, it doesn't store any object not planes, cubes but also not any UI elements. I set all Canvas and it's all children to UI layer.
I can only store 2d sprites(I add 2d collider component) as game object but it does not work with Screen Space-Overlay and does not show up in scene if I use any Background for canvas.
I am trying few methods, I hope I can handle it...
I can try second camera with Screen Space-Camera for UI but background problem will occur again..
Best Regards,
Vael