- Home /
Unity panel with border radius and a solid color
Hey,
I'm new to Unity3D and I'd like to create a panel with a white solid background and a 30px border radius in the top left edge and bottom right edge. I've created a panel and added the source image to the panel:
It contains the correct form and the correct background color. However, it only appears the correct form but the background color remains grey with a alpha transparency:
So Unity3D seems to only add the look but not the color. If I assign a white material it will delete the border radius.
How can I add a solid white color background to my panel if it has a border radius?
Answer by Neamtzu · Mar 02, 2015 at 02:10 PM
Select the panel, in Inspector under Source Image you can find a Color property. Select it and change the alpha (A) value from 100 to 255.
Your answer
Follow this Question
Related Questions
How do I make a UI element in world space cover a game object in the scene? 0 Answers
Button onClick events will not be triggered 1 Answer
How to render a colored 2D rectangle. 6 Answers
Labels aren't colored properly 1 Answer
Colored 3d Text? 1 Answer