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