Reflection Probe Hdr#
Rendering / Reflection Probe / Reflection Probe Hdr
Description#
Compares the Hdr property of Reflection Probe component to another value
Parameters#
| Name | Description |
|---|---|
| Reflection Probe |
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("Reflection Probe Hdr")]
[Category("Rendering/Reflection Probe/Hdr")]
[Description("Compares the Hdr property of Reflection Probe component to another value")]
[Image(typeof(IconReflectionProbe), ColorTheme.Type.Blue)]
[Parameter("Reflection Probe")]
[Serializable]
public class GenConditionBool_ReflectionProbe_CheckHdr : Condition
{
[SerializeField] private GetGameObject m_ReflectionProbe = new GetGameObject(
new GenTypeGameObject_ReflectionProbe()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Hdr");
return $"{this.m_ReflectionProbe} {member}";
}
protected override bool Run(Args args)
{
ReflectionProbe component = this.m_ReflectionProbe.Get<ReflectionProbe>(args);
if (component == null) return false;
return component.hdr;
}
}
}