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