- marked as enhancement
PreviewField attribute and pixel art
Issue #831
resolved
The “PreviewField” attribute does not work properly with low resolution pixel art, as the images are shown blurry.
Example, 7x7 sprite:
Unity version: 2021.2.7
Thanks
Comments (2)
-
-
- changed status to resolved
Starting with Odin 3.1.11, the PreviewField attribute now supports setting the filter mode. You can use FilterMode.Point for non-blurry pixel art. Thank you for the feedback.
- Log in to comment
This is because the texture's filter mode is set to bilinear, which averages texture samples.
Currently there is no way for the user to change this via a parameter so I will mark this as a future improvement.