This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

PixelPerfectRendering

class in UnityEngine.Experimental.U2D

/

Implemented in:UnityEngine.CoreModule

Description

A collection of APIs that facilitate pixel perfect rendering of sprite-based renderers.

Static Properties

pixelSnapSpacingTo achieve a pixel perfect render, Sprites must be displaced to discrete positions at render time. This value defines the minimum distance between these positions. This doesn’t affect the GameObject's transform position.