Search Unity

Color temp, what am I missing?

Discussion in 'General Graphics' started by karmafarm, May 5, 2017.

  1. karmafarm

    karmafarm

    Joined:
    Nov 1, 2016
    Posts:
    1
    Hi all. So I'm trying to change the color temp of my main directional light in the scene to provide a nice visual effect for a summer / winter look. I have got a script that calculates the appropriate color temp, and includes-

    GraphicsSettings.lightsUseLinearIntensity = true;
    GraphicsSettings.lightsUseColorTemperature = true;

    When I hit play, my debug code says I'm changing color temp. However, I don't see it until I check an editor box on my light that says 'color temperature mode.' This checkbox is not there until I hit play, meaning I can't save the setting with the scene, and I can't figure out how to change it in code. From the look of the inspector window, there should be a bool somewhere to enable color temp mode on this light in code, but I can't find it! Anyone know where to get at this parameter?
     
  2. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    In the inspector, next to the little padlock at the top right, there is a menu where you can turn on the Debug view. This will reveal your check box!

    Did you get it all working in the end?
     
    SunnySunshine and DougRichardson like this.