Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I return! Another question, how did you make it so when you stamp a paper the stamp prefab doesn't bleed over the paper? Originally, I thought it was sprite masks, but that doesn't seem right since they would appear when hovering over a second paper.

(+1)

We did use sprite masks! On UI layers you can have it so that sprite masks apply only to a specific range of sorting orders (eg z levels 1 through 3). We made it so that page objects use even-numbered z layers and any contents on the page (signatures, check marks, stamps) use the z layer directly above its page. That way if you have a letter with s.order 0 and another with s.order 2, the stamp on letter 0 has s.order 1, which is masked by letter 2.

I didn't even know that was a function! Thank you, God of digital paperwork!

But wouldn't it still hover over a neighboring paper?

Yes but UI sprite masks only apply to the sorting z levels that you tell it to, so as long as we place every stamp on its own sorting order it works fine. If you're using a non-UI sprite mask then you don't get that flexibility (for some reason)