So I'm toying with different ideas for UI themes and, since I'm inspecting the screen closely, am noticing that some of my test menus just aren't doing their pixel perfect magic very well at all. (See attached image.)
Are there any caveats to making pixel perfect work correctly? I tend to have a structure like this:
UIRoot -> UICamera -> UIAnchor -> OriginObject -> UIPanel ->UIsub-widgets
The "OriginObject" is just an empty GameObject I stick in the structure that has the correct origin for the panel that is a child of it. This allows me to set the panel's transform position with something like Y = 1000 so that it is not on the screen while I'm working with other elements. I have a script attached to each UIPanel that set the local position back to 0,0,0 on Awake.
So what I'm seeing is that the left-hand menu isn't pixel perfect (backdrop or icons or text) while the one on the right is. What could be causing this? Note that it looks like this both in the Editor and while the app is running.