- Home /
UI elements are not getting affected by lighting
Hey, I wanna make a dark menu for a zombie game where the menu is dark but parts like buttons lit in it... I tried using normal unity 2D lighting but the UI elements are not getting affected by it, can anyone help me with this?
unity ui elements are not per default affected by light. you can however assign a material to certain ui components via the inspector (such as "Image")
note: i´m not per se sure if lights will affect canvases that are set to "screenSpaceOverlay" mode so i´d say you need the canvas either in screenSpaceCamera or worldSpace mode
Your answer
Follow this Question
Related Questions
Why is the canvas backwards in scene view 1 Answer
How to make World Space Canvas be on top of Overlay Canvas? 0 Answers
how I can hide a canvas in Unity and shows it after some days using C# Script ? 1 Answer
UI Buttons visible but not clickable when using two canvases. 3 Answers
Problem with Button in ScrollView 0 Answers