PreviewField attribute and pixel art

Issue #831 resolved
Luciano Bercini created an issue

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)

  1. Antonio Rafael Antunes Miranda

    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.

  2. Antonio Rafael Antunes Miranda

    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.

  3. Log in to comment