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