Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Camera Orthographic Size Changes On Run

Discussion in '2D' started by Whitegrave, Aug 3, 2022.

  1. Whitegrave

    Whitegrave

    Joined:
    Apr 17, 2022
    Posts:
    37
    Hey all,

    For some reason when I press the play button to run my project, the size value of my orthographic camera changes and I can't sort out why.

    https://imgur.com/a/oPYZ0k3

    This is a barebones project and I have zero scripts that touch the camera in any way
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,751
    Except for the pickle perfect script. :)
     
  3. Whitegrave

    Whitegrave

    Joined:
    Apr 17, 2022
    Posts:
    37
    The component? I was following a tutorial that said to use it for 2d pixel art games. Is there some way to prevent it from doing this? Additionally, my camera preview never matches what the game view looks like at run time. The zoom levels are different.

    Not sure how I can get the pixel perfect component to be happy with my zoom level in the editor
     
  4. rarac

    rarac

    Joined:
    Feb 14, 2021
    Posts:
    570
    you cant, thats why its called pixel perfect

    if you dont want the pixel perfect remove the component