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 4.5.6 new gui text ignores layers Help!!

Discussion in 'UGUI & TextMesh Pro' started by CKSghost, Jan 10, 2015.

  1. CKSghost

    CKSghost

    Joined:
    Aug 24, 2014
    Posts:
    3
    Hi there.I'm trying from 47 minutes to get my gui text not show on camera.I have a Cam1 with ignore evrything except Gui1 and i have a cam2 with ignore all excepting Gui2.I add Gui 2 to the text and it still visible on my first camera,what im doing wrong...any help is apreciated
     
  2. BMayne

    BMayne

    Joined:
    Aug 4, 2014
    Posts:
    186
    Hey there,

    Even if you set the layer to not UI it still belongs to the UI Layer. This is how it works internally.
     
  3. CKSghost

    CKSghost

    Joined:
    Aug 24, 2014
    Posts:
    3
    I'm working on a text based game and i would switch between 5-10 cameras in one scene,not make a new scene every time,is there any way i can make the my camera ignore layers,somehow?
     
  4. BMayne

    BMayne

    Joined:
    Aug 4, 2014
    Posts:
    186
    I was incorrect after testing this a bit farther. The layer only matters to the canvas. If you want to use multiple layers you have to use multiple canvases.
     
  5. CKSghost

    CKSghost

    Joined:
    Aug 24, 2014
    Posts:
    3
    Even if i have 1 cam set up with ignore UI layer,it's still there.Is there i do wrong or i do need to do something else in order to my cam ignore the UI?
     
  6. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    If you're using overlay, then it's always drawn and can't be ignored. You need to use screen space camera or world space.

    --Eric