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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

how to get ride of that red text(error) when using pixel perfect camera ??

Discussion in '2D' started by MrZzzero, Sep 7, 2018.

  1. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    how to get ride of that red text(error) it keeps showing in some resolutions like 800:480 ? i tried to change the Assets pixel per unit and reference resolution settings but nothing also i reimported the package and create new project but nothing new ?? RedError.JPG
     
  2. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    i see that it's a basic question why no help ??? useless forum
     
  3. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    Your error message seems to be warning that the sprite rendering may appear stretched or distorted (Or perhaps not work at all) due to the nature of the camera itself. Try 465 x 140 instead and maybe set the ortho to 2 ppu (If changing the resolution doesn't work properly.)
     
  4. lie_coffin

    lie_coffin

    Joined:
    Nov 22, 2016
    Posts:
    2
    It's a late reply, but here is the solution. We can edit Pixel perfect Camera script(it has camera icon, so it doesn't look like a script but it's a script.) and we can make some lines comment line:

    //GUILayout.Box(warning);

    and

    //GUILayout.Box("Screen resolution is smaller than the reference resolution. Image may appear stretched or cropped.");


    I hope it's clear enough.
     

    Attached Files:

  5. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    thanks guys , i understand now why that warning red text appear its related to reference and screen size