Search Unity

Fit camera to canvas

Discussion in '2D' started by kantescore, Aug 10, 2019.

  1. kantescore

    kantescore

    Joined:
    Dec 4, 2018
    Posts:
    7
    i have a main menu canvas that includes a panel .
    the canvas size is 1920*1080 and the panel is placed in the center of it .
    when i run the scene i see the panel in the center,surrounded by the blue colored canvas.
    i would like to see only the panel which means that the size of the camera(or the canvas?)must be the size of the panel .tried to find answers but mostly got reference to screen size responsiveness.
     
  2. RisingMos

    RisingMos

    Joined:
    Aug 28, 2015
    Posts:
    17