- 最后登录
- 2019-1-30
- 注册时间
- 2017-10-10
- 阅读权限
- 90
- 积分
- 5985
- 纳金币
- 2041
- 精华
- 4
|
Pixel Perfect Camera script gives more control over the camera size and enables pixel perfect rendering for pixel art Sprites and Canvas elements.
Pixel perfect: adjusts the camera size so that each sprite pixel is rendered to an integer number of screen pixels. This is very important when you render pixel art using "point sampling".
Camera width: specify the camera width instead of height (the default Unity camera allows you to set only the camera height).
Size constraints: you can optionally set the maximum allowed camera width or height. This is useful if for example the user has an ultra wide monitor and you don't want your camera's width to be wider than some amount. The script will choose a camera size that respects all constraints.
Retro snap: enabling pixel snapping makes sprites snap to the artwork's pixel grid producing a snappy retro motion.
Canvas support: UI elements under a Canvas can be rendered in a pixel-perfect way.
|
|