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