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