TriLib Exporter
Search Results for

    Show / Hide Table of Contents

    Class Camera

    Represents a Unity Camera object with properties tailored for export.

    Inheritance
    object
    ObjectBase
    Camera
    Inherited Members
    ObjectBase.Name
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TriLibExporter.Objects
    Assembly: Assembly-CSharp.dll
    Syntax
    public class Camera : ObjectBase

    Constructors

    Camera(AssetWriterContext, Camera)

    Initializes a new instance of the Camera class.

    Declaration
    public Camera(AssetWriterContext assetWriterContext, Camera camera)
    Parameters
    Type Name Description
    AssetWriterContext assetWriterContext

    The asset writer context associated with this camera.

    Camera camera

    The Unity Camera to represent.

    Fields

    AspectRatio

    The aspect ratio of the camera.

    Declaration
    public float AspectRatio
    Field Value
    Type Description
    float

    BackgroundColor

    The background color of the camera.

    Declaration
    public Color BackgroundColor
    Field Value
    Type Description
    Color

    FarPlane

    The far clipping plane distance of the camera.

    Declaration
    public float FarPlane
    Field Value
    Type Description
    float

    FieldOfView

    The field of view of the camera, in degrees.

    Declaration
    public float FieldOfView
    Field Value
    Type Description
    float

    FocalLength

    The focal length of the camera.

    Declaration
    public float FocalLength
    Field Value
    Type Description
    float

    FocusDistance

    The focus distance of the camera.

    Declaration
    public float FocusDistance
    Field Value
    Type Description
    float

    GateFit

    The gate fit mode of the camera.

    Declaration
    public Camera.GateFitMode GateFit
    Field Value
    Type Description
    Camera.GateFitMode

    LensShift

    The lens shift of the camera.

    Declaration
    public Vector2 LensShift
    Field Value
    Type Description
    Vector2

    NearPlane

    The near clipping plane distance of the camera.

    Declaration
    public float NearPlane
    Field Value
    Type Description
    float

    Ortographic

    Indicates whether the camera is orthographic.

    Declaration
    public bool Ortographic
    Field Value
    Type Description
    bool

    PixelRect

    The pixel rectangle of the camera.

    Declaration
    public Rect PixelRect
    Field Value
    Type Description
    Rect

    SensorSize

    The sensor size of the camera.

    Declaration
    public Vector2 SensorSize
    Field Value
    Type Description
    Vector2

    UsePhysicalProperties

    Indicates whether the camera uses physical properties.

    Declaration
    public bool UsePhysicalProperties
    Field Value
    Type Description
    bool
    In this article
    Back to top Generated by DocFX