# Set Light Use View Frustum For Shadow Caster Cull

[Rendering](../index.md) / [Light](index.md) / **Set Light Use View Frustum For Shadow Caster Cull**

## Description

Sets the Use View Frustum For Shadow Caster Cull property of Light component

## Parameters

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

## 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("Set Light Use View Frustum For Shadow Caster Cull")]
    [Category("Rendering/Light/Use View Frustum For Shadow Caster Cull")]
    [Description("Sets the Use View Frustum For Shadow Caster Cull property of Light component")]
    
    [Image(typeof(IconLight), ColorTheme.Type.Yellow)]
    
    [Parameter("Light")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionBool_Light_SetUseViewFrustumForShadowCasterCull : Instruction
    {
        [SerializeField] private GetGameObject m_Light = new GetGameObject(
            new GenTypeGameObject_Light()
        );
        
        [SerializeField] private GetBool m_Value = new GetBool();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Use View Frustum For Shadow Caster Cull");
            return $"{this.m_Light} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            Light component = this.m_Light.Get<Light>(args);
            if (component == null) return Done;
            
            component.useViewFrustumForShadowCasterCull = (bool) this.m_Value.Get(args);
            
            return Done;
        }
    }
}


```

