Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Many clicks required to select my UI button in Scene view

Discussion in 'UGUI & TextMesh Pro' started by User340, Jul 14, 2022.

  1. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    I have to click at least 3 times in order to select my prefab button. First click it selects the parent, next it selects the root, and finally it selects my button. It would be so nice if on the first click it would simply select my button. Is there a settings somewhere that enables that?
     
  2. Axcell-RMS

    Axcell-RMS

    Joined:
    Oct 22, 2021
    Posts:
    2
    jonathanglitchers likes this.
  3. jonathanglitchers

    jonathanglitchers

    Joined:
    Jan 5, 2023
    Posts:
    8
    Thanks, the SelectionBaseAttribute makes it 90% less annoying.

    Does anyone know though if there's a way to just start clicking through the hierarchy in the reverse order?

    E.g. rather than canvas -> group -> scroll area -> viewport ->button
    do button -> viewport -> scroll area -> group -> canvas

    I wouldn't even mind if it was simulating 20 clicks in the background and took like 3.5 seconds per click to determine depth - it would be a slight improvement over what we have now.
    Thanks.