Camera Copy Stereo Device Projection Matrix To Non Jittered#
Rendering / Camera / Camera Copy Stereo Device Projection Matrix To Non Jittered
Description#
Executes the Copy Stereo Device Projection Matrix To Non Jittered method on the Camera component
Parameters#
| Name | Description |
|---|---|
| Eye |
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 Copy Stereo Device Projection Matrix To Non Jittered")]
[Category("Rendering/Camera/Copy Stereo Device Projection Matrix To Non Jittered")]
[Description("Executes the Copy Stereo Device Projection Matrix To Non Jittered method on the Camera component")]
[Image(typeof(IconCamera), ColorTheme.Type.Blue)]
[Parameter("Eye")]
[Serializable]
public class GenInstructionCamera_CopyStereoDeviceProjectionMatrixToNonJittered_1 : Instruction
{
[SerializeField] private GetGameObject m_Camera = new GetGameObject(
new GenTypeGameObject_Camera()
);
[SerializeField] private Camera.StereoscopicEye m_Eye = default;
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Copy Stereo Device Projection Matrix To Non Jittered");
return $"{this.m_Camera} {method} ({this.m_Eye})";
}
protected override Awaitable Run(Args args)
{
Camera component = this.m_Camera.Get<Camera>(args);
if (component == null) return Done;
component.CopyStereoDeviceProjectionMatrixToNonJittered(
this.m_Eye
);
return Done;
}
}
}