I’m making a book that will have a number of pages. Each page consists of an ordinary mesh, plus a world-space Canvas containing a TextMeshProUGUI. I curl both the page and the text mesh using the same bezier function. I also add a small Y offset to the text mesh so that it draws on top of the page.
Works fine at moderate amounts of curl, but when the curl gets more intense, I often have the page clipping through the text mesh, as shown above. This happens because the page is a much lower-resolution mesh (currently 8x8 quads) than the text mesh.
I could sort of work around this by using a higher resolution page mesh, or by bending the text mesh to match the actual page mesh instead of the mathematical bezier function. But the former solution is heavy and the latter is likely to make the low-poly nature of the page more apparent than I would like.
Is there any way to say: draw this (text) mesh always on top of that (page) mesh, but otherwise sort them normally with respect to everything else in the scene?