docs.unity.cn
    Show / Hide Table of Contents

    Enum PixelPerfectCamera.GridSnapping

    Determines how pixels are snapped to the grid.

    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public enum GridSnapping

    Fields

    Name Description Value
    None

    No snapping.


    0
    PixelSnapping

    Prevent subpixel movement and make Sprites appear to move in pixel-by-pixel increments.


    1
    UpscaleRenderTexture

    The scene is rendered to a temporary texture set as close as possible to the Reference Resolution, while maintaining the full screen aspect ratio. This temporary texture is then upscaled to fit the full screen.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023