Camera Get Gate Fitted Field Of View#
Rendering / Camera / Camera Get Gate Fitted Field Of View
Can Read
Cannot Write
Description#
Returns the execution of Get Gate Fitted Field Of View 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
{
[Get]
[Title("Camera Get Gate Fitted Field Of View")]
[Category("Rendering/Camera/Get Gate Fitted Field Of View")]
[Description("Returns the execution of Get Gate Fitted Field Of View method on the Camera component")]
[Image(typeof(IconCamera), ColorTheme.Type.Blue)]
[Serializable]
public class GenTypeNumber_Camera_GetGateFittedFieldOfView_0 : TypeNumber
{
[SerializeField] private GetGameObject m_Camera = new GetGameObject(
new GenTypeGameObject_Camera()
);
public override double Get(Args args)
{
Camera component = this.m_Camera.Get<Camera>(args);
if (component == null) return default;
double value = (double) component.GetGateFittedFieldOfView();
return value;
}
public override string ToString()
{
return $"{this.m_Camera} Get Gate Fitted Field Of View";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}