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. Dismiss Notice

Canvas Group causes Non-Interactable UI Elements

Discussion in 'UI Toolkit' started by CrimsonGemini, Aug 6, 2020.

  1. CrimsonGemini

    CrimsonGemini

    Joined:
    Jul 10, 2020
    Posts:
    3
    I am currently trying to make a menu system for my game that involves enabling and disabling blank images containing each menu.
    Upon figuring out that I cant just disable and enable all the children without having to do each individual one, I then added a canvas group to each image, thus allowing me to control its visibility & intractability.

    Though I ran into a snag with upon adding the component, I cannot click on the menu buttons anymore.
    I went to this forum post and checked off the step by step list.
    https://forum.unity.com/threads/cant-click-ui-buttons.431042/

    - Make sure the graphic has "raycastTarget" set to True.
    - Make sure the button has its "interactable" set to True.

    Done and Done

    ~~~~~
    - If there's a nested canvas in the button's parent, that canvas also needs GraphicsRaycaster.

    Checked and Done

    And yes, I do have an event system, the Buttons were already working before I added the canvas groups.


    But despite doing all of this, my buttons still cannot be hovered or clicked on. I honestly am not sure why this is happening, but am pretty sure its something really basic I am missing.
     
  2. JuliaP_Unity

    JuliaP_Unity

    Unity Technologies

    Joined:
    Mar 26, 2020
    Posts:
    666
  3. CrimsonGemini

    CrimsonGemini

    Joined:
    Jul 10, 2020
    Posts:
    3
    Oh sorry, my mistake, Im new to all of this UI stuff and didnt know the difference. I will go ahead and post over there
    thanks!