Light Enable Spot Reflector#
Rendering / Light / Light Enable Spot Reflector
Description#
Compares the Enable Spot Reflector property of Light component to another value
Parameters#
| Name | Description |
|---|---|
| Light |
Code#
// <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 Enable Spot Reflector")]
[Category("Rendering/Light/Enable Spot Reflector")]
[Description("Compares the Enable Spot Reflector property of Light component to another value")]
[Image(typeof(IconLight), ColorTheme.Type.Yellow)]
[Parameter("Light")]
[Serializable]
public class GenConditionBool_Light_CheckEnableSpotReflector : Condition
{
[SerializeField] private GetGameObject m_Light = new GetGameObject(
new GenTypeGameObject_Light()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Enable Spot Reflector");
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.enableSpotReflector;
}
}
}