Camera Setup Current#
Rendering / Camera / Camera Setup Current
Description#
Executes the Setup Current static method of the Camera class
Parameters#
| Name | Description |
|---|---|
| Cur |
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 Setup Current")]
[Category("Rendering/Camera/Setup Current")]
[Description("Executes the Setup Current static method of the Camera class")]
[Image(typeof(IconCamera), ColorTheme.Type.Blue)]
[Parameter("Cur")]
[Serializable]
public class GenInstructionCamera_SetupCurrent_1 : Instruction
{
[SerializeField] private GetGameObject m_Cur = new GetGameObject();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Camera");
string method = TextUtils.ThemeAsKeyword("Setup Current");
return $"{className} {method} ({this.m_Cur})";
}
protected override Awaitable Run(Args args)
{
Camera.SetupCurrent(
(Camera) this.m_Cur.Get<Camera>(args)
);
return Done;
}
}
}