# Light Use Color Temperature

[Rendering](../index.md) / [Light](index.md) / **Light Use Color Temperature**

## Description

Compares the Use Color Temperature property of Light component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Light |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Rendering;

namespace VisualScript.Runtime
{
    [Title("Light Use Color Temperature")]
    [Category("Rendering/Light/Use Color Temperature")]
    [Description("Compares the Use Color Temperature property of Light component to another value")]
    
    [Image(typeof(IconLight), ColorTheme.Type.Yellow)]
    
    [Parameter("Light")]
    
    [Serializable]
    public class GenConditionBool_Light_CheckUseColorTemperature : Condition
    {
        [SerializeField] private GetGameObject m_Light = new GetGameObject(
            new GenTypeGameObject_Light()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use Color Temperature");
            return $"{this.m_Light} {member}";
        }
        
        protected override bool Run(Args args)
        {
            Light component = this.m_Light.Get<Light>(args);
            if (component == null) return false;
            
            return component.useColorTemperature;
        }
    }
}


```

