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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Nested canvas override sorting input problem

Discussion in 'UGUI & TextMesh Pro' started by DarkPixel, Aug 17, 2015.

  1. DarkPixel

    DarkPixel

    Joined:
    Sep 13, 2013
    Posts:
    79
    I use override sorting with a nested canvas, but the input won't work in this canvas. Is there something I missed or it's a bug? (I'll file a bug if it's the case)

    See my screenshot. Input work fine in Canvas1/Canvas2, but I can't click on the button Override Canvas. The number on the button are the canvas sorting order
     

    Attached Files:

    unity_x7qxJB_Gnun96g likes this.
  2. DarkPixel

    DarkPixel

    Joined:
    Sep 13, 2013
    Posts:
    79
    No problem here. I forgot a Graphic Raycaster on the nested canvas.

    -Create GameObject / UI / Canvas : Add a graphic raycaster by default
    -Add Component / Canvas: You need to add manually the raycaster
     
  3. bladematthewslp

    bladematthewslp

    Joined:
    Dec 12, 2017
    Posts:
    1
    Thank you so much for this. I was having a difficult time understanding why nested canvases did not respond to Click events until your comment instructed to add the Graphic Raycaster component to the nested canvas.
     
  4. franco999

    franco999

    Joined:
    Oct 7, 2020
    Posts:
    1
    [QUOTE = "DarkPixel, publicación: 2255221, miembro: 406741"] No hay problema aquí. Olvidé un Graphic Raycaster en el lienzo anidado.

    -Crear GameObject / UI / Canvas: agregue un raycaster gráfico por defecto
    -Añadir componente / lienzo: debe agregar manualmente el raycaster [/ QUOTE]


    graciaa xD!! yo ni lo sabia :)
     
  5. ssapspqr

    ssapspqr

    Joined:
    Oct 10, 2020
    Posts:
    1
    Thank you so much!! that solved my problem finally !