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

Question How to make ui window

Discussion in 'Editor & General Support' started by MilitaryG, Aug 6, 2022.

  1. MilitaryG

    MilitaryG

    Joined:
    Apr 26, 2021
    Posts:
    28
    Ok I made a panel for window and got in some buttons. Thing is when button goes out of the window I can still see it.

    So how to make invisible button when outside of window.

    Ok i know i can disable GameObject but i can't disable 1/2 of a button.

    Any ideas?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    You could use a Mask to clip visibility, or more complicated Shader options I suppose.
     
  3. MilitaryG

    MilitaryG

    Joined:
    Apr 26, 2021
    Posts:
    28
    oki ty now I know where to look:

    mask clip