Camera Vertical To Horizontal Field Of View#
Rendering / Camera / Camera Vertical To Horizontal Field Of View
Can Read
Cannot Write
Description#
Returns the execution of Vertical To Horizontal Field Of View static method on the Camera class
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
{
[Get]
[Title("Camera Vertical To Horizontal Field Of View")]
[Category("Rendering/Camera/Vertical To Horizontal Field Of View")]
[Description("Returns the execution of Vertical To Horizontal Field Of View static method on the Camera class")]
[Image(typeof(IconCamera), ColorTheme.Type.Blue)]
[Serializable]
public class GenTypeNumber_Camera_VerticalToHorizontalFieldOfView_2 : TypeNumber
{
[SerializeField] private GetNumber m_VerticalFieldOfView = new GetNumber();
[SerializeField] private GetNumber m_AspectRatio = new GetNumber();
public override double Get(Args args)
{
double value = (double) Camera.VerticalToHorizontalFieldOfView(
(float) this.m_VerticalFieldOfView.Get(args),
(float) this.m_AspectRatio.Get(args)
);
return value;
}
public override string ToString()
{
return $"Camera Vertical To Horizontal Field Of View ({this.m_VerticalFieldOfView}, {this.m_AspectRatio})";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}