Search Unity

Not-entire screen issue

Discussion in '2D' started by hoshicameron, Sep 29, 2019.

  1. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    14
    Hi, I'm using pixel perfect camera on main camera and already check stretch to fill in its setting but the output isn't fill entire screen.
    This is a screen shot from my phone:
    https://m.imgur.com/gallery/ATDjxYM
     
  2. yuanxing_cai

    yuanxing_cai

    Unity Technologies

    Joined:
    Sep 26, 2014
    Posts:
    335
    The imgur link seems to be dead. Can you try uploading the image directly to the forum?
     
  3. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    14
    It seems that uploading image isn't working correctly in forums. Sometimes the image not shown. Maybe I'm not do it correctly. here is the new link::https://ibb.co/QM3VwGv
    and the pixel perfect camera setting: https://ibb.co/QDFmfk6
     
    Last edited: Oct 1, 2019
  4. yuanxing_cai

    yuanxing_cai

    Unity Technologies

    Joined:
    Sep 26, 2014
    Posts:
    335
    When we do stretch fill, we need to keep the aspect ratio defined by the reference resolution. Otherwise your image will appear stretched if your screen aspect ratio is different. Thus the black bars on the sides.

    An alternative option is to not use stretch fill and also uncheck Crop Frame X & Y.
     
    hoshicameron likes this.
  5. hoshicameron

    hoshicameron

    Joined:
    Dec 20, 2015
    Posts:
    14
    Thanks for your help.