Reflection Probe Render Dynamic Objects#
Rendering / Reflection Probe / Reflection Probe Render Dynamic Objects
Description#
Compares the Render Dynamic Objects 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 Render Dynamic Objects")]
[Category("Rendering/Reflection Probe/Render Dynamic Objects")]
[Description("Compares the Render Dynamic Objects property of Reflection Probe component to another value")]
[Image(typeof(IconReflectionProbe), ColorTheme.Type.Blue)]
[Parameter("Reflection Probe")]
[Serializable]
public class GenConditionBool_ReflectionProbe_CheckRenderDynamicObjects : Condition
{
[SerializeField] private GetGameObject m_ReflectionProbe = new GetGameObject(
new GenTypeGameObject_ReflectionProbe()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Render Dynamic Objects");
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.renderDynamicObjects;
}
}
}