Search Unity

Difficulty making panel transparent

Discussion in 'Editor & General Support' started by nickgran321, Jul 18, 2020.

  1. nickgran321

    nickgran321

    Joined:
    Feb 3, 2020
    Posts:
    5
    Hey everyone,

    Beginner here.
    I am developing a project with several UI buttons.
    I need the buttons to be fully in color while the background is slightly transparent.
    The panel appears slightly transparent, but then becomes completely solid in my scene when I press play in Unity.
    Does EntryPanel need to be solid because the children buttons are solid?
    Is there a script or workaround to help me with this issue?

    Thank you very much.

    Screenshot (29).jpeg Screenshot (30).jpeg
     
  2. nickgran321

    nickgran321

    Joined:
    Feb 3, 2020
    Posts:
    5
    One more note: I actually plan to make the panel fully transparent!
     
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    Is it possible you have a script that affects the color of that panel? I see it appears to be some kind of modal UI panel. Maybe there's a modal script that sets the color of the panel when it shows the modal?
     
  4. nickgran321

    nickgran321

    Joined:
    Feb 3, 2020
    Posts:
    5
    Screenshot (31).jpeg

    I have one script attached, but I don't think that this would alter the color.
    What's interesting is that if I try to simply uncheck the image of the EntryPanel, the entire background becomes white.
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    Do you know what this white panel is that I circled in red?

    Screenshot (30).jpeg

    I don't see that in the editor screenshot and it appears like it could be an opaque white panel behind your transparent panel. That would explain why you can't see behind your panel and why it turns white when you hide it completely. There's another panel beneath it!
     
  6. nickgran321

    nickgran321

    Joined:
    Feb 3, 2020
    Posts:
    5
    Thank you!!
    I was so preoccupied with that one panel, I completely glossed over that :confused:
    Next time I will be more careful.
     
    PraetorBlue likes this.