- Home /
Question by
annonymushubh · Jul 31, 2017 at 12:35 PM ·
unity 5colorchangebackgroundscroll view
how i change the background color of scrollview viewport
how i can change the color of the scroll view view port change to black
Comment
Answer by herDev · Jul 31, 2017 at 12:59 PM
Hi,
If your viewport isn't dynamic...you could clone the viewport gameObject, stack it above, remove the mask (script), Add Component > UI > Image in the Inspector for the gameObject and then assign a black colour value to the image component colour. You don't need to assign an actual image sprite (unless you want a custom background image).
Hope that helps!
Your answer
Follow this Question
Related Questions
Background color wouldn't change 0 Answers
Change color of Gui.Box background to solid black 1 Answer
Gradient Background Color,Gradient Background color 0 Answers
gui.label color change 1 Answer
Duplicated objects, different colors 1 Answer