- Home /
Question by
kubawich · Jul 01, 2016 at 03:49 PM ·
camerascripting problemcolorprogramming
How can i get current camera's background color?
I have to interpolate between current camera bacground color, and one defined in the list, but I don't know how to get this current one in the code.
Comment
Best Answer
Answer by Asgardr · Jul 01, 2016 at 04:28 PM
You can use Camera.backgroundColor. If the camera you want to get the color from is tagged as MainCamera, you can simply do
Camera.main.backgroundColor
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
The referenced script (CameraContoller) on this Behaviour is missing! 1 Answer
Show squares in the camera 0 Answers
NLua Whitelist classes from UnityEngine namespace 1 Answer
Stop enemies from grouping up 1 Answer