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