My problem is I want the ball to be always rendered before the cube. Even if the ball fall inside or behind the cube, I want the ball still to be able to see throw the cube.
I had tried modifying the Render Queue of the ball and cube to 1999 and 2000, and vice versa. But nothing happened.
Both of my gameObject is using Universal Render Pipeline/Autodesk Interactive/Autodesk Interactive.
Could anyone have me solve this? Thanks for reading.
I solved the problem by using Stencil.
This is the tutorial that I followed: