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

Unity UI does not work with camera's custom projection matrix

Discussion in 'UGUI & TextMesh Pro' started by Ben-BearFish, Jan 23, 2015.

  1. Ben-BearFish

    Ben-BearFish

    Joined:
    Sep 6, 2011
    Posts:
    1,204
    Has anyone had the issue with using a custom camera projection matrix, which then prevents Unity's UI from showing on the screen?

    I'm not sure if there is a good fix for this, outside of using a second camera to render the UI, which for my scen wouldn't be ideal as I already have 4 splitscreen cameras that would require and additional 4 cameras for each of the UI elements of each of the 4 viewports.
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,683
    To have a custom camera proj matrix you have to use another camera for the UI using either a ScreenSpace - Camera or Worldspace canvas. As this is the only way to alter the Canvas projection.
     
  3. diegoadrada

    diegoadrada

    Joined:
    Nov 27, 2014
    Posts:
    59
    You were able to solve this? Thanks!