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