Search Unity

Camera viewport

Discussion in 'Editor & General Support' started by Harry1960, Dec 3, 2007.

  1. Harry1960

    Harry1960

    Joined:
    May 15, 2007
    Posts:
    136
    I'm trying to set the camera viewport at runtime to visualize whether inputs are allowed or not. This works great inside unity but as soon as I build a binary the borders in the smaller view aren't black. It seems that the video-buffer doesn't get cleared.
    Is there any workaround?
     
  2. metervara

    metervara

    Joined:
    Jun 15, 2006
    Posts:
    203
    Hi.

    You can use an additional camera to clear the screen. Set it up with culling=nothing and a depth lower than your main camera.

    /Patrik
     
  3. Harry1960

    Harry1960

    Joined:
    May 15, 2007
    Posts:
    136
    Thank you that did the trick.