Reflection Probe Reset#
Rendering / Reflection Probe / Reflection Probe Reset
Description#
Executes the Reset method on the Reflection Probe component
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 Reset")]
[Category("Rendering/Reflection Probe/Reset")]
[Description("Executes the Reset method on the Reflection Probe component")]
[Image(typeof(IconReflectionProbe), ColorTheme.Type.Blue)]
[Serializable]
public class GenInstructionReflectionProbe_Reset_0 : Instruction
{
[SerializeField] private GetGameObject m_ReflectionProbe = new GetGameObject(
new GenTypeGameObject_ReflectionProbe()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Reset");
return $"{this.m_ReflectionProbe} {method}";
}
protected override Awaitable Run(Args args)
{
ReflectionProbe component = this.m_ReflectionProbe.Get<ReflectionProbe>(args);
if (component == null) return Done;
component.Reset();
return Done;
}
}
}