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

Child canvas not receiving events..

Discussion in 'UGUI & TextMesh Pro' started by rlyle1179, Dec 12, 2014.

  1. rlyle1179

    rlyle1179

    Joined:
    Oct 3, 2012
    Posts:
    5
    Ok, been searching high and low for a solution, so hopefully i can find some help with this issue..

    We have a Canvas component attached to a root GameObject called "BattleUI" in our scene, it's set for Screen Space and is hooked up to our main camera just fine. We have a child object called "ScreenBottom" attached, it also has a Canvas component, we are overriding the sorting order so this canvas actually get's rendered underneath the rest of the UI that all works. However, no events are being received by anything attached to ScreenBottom.

    I've tried attaching another GraphicsRaycaster to "ScreenBottom" but that doesn't work. The only thing that does work, is to remove the Canvas component off ScreenBottom, then child objects start receiving events just fine, but our sorting is messed up in that case.

    Thanks
     
  2. rlyle1179

    rlyle1179

    Joined:
    Oct 3, 2012
    Posts:
    5
    Ok, this seems to have resolved it'self once I removed the nested and root canvas components and re-added them..