docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CameraBase

    A camera’s projection

    Inheritance
    object
    NamedObject
    CameraBase
    CameraBase<TOrthographic, TPerspective>
    Inherited Members
    NamedObject.name
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast.Schema
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class CameraBase : NamedObject

    Fields

    type

    Camera projection type

    Declaration
    [Obsolete("Use GetCameraType and SetCameraType for access.")]
    public string type
    Field Value
    Type Description
    string

    Properties

    Orthographic

    An orthographic camera containing properties to create an orthographic projection matrix.

    Declaration
    public abstract CameraOrthographic Orthographic { get; }
    Property Value
    Type Description
    CameraOrthographic

    Perspective

    An orthographic camera containing properties to create an orthographic projection matrix.

    Declaration
    public abstract CameraPerspective Perspective { get; }
    Property Value
    Type Description
    CameraPerspective

    Methods

    GetCameraType()

    CameraBase.Type typed and cached getter onto type string.

    Declaration
    public CameraBase.Type GetCameraType()
    Returns
    Type Description
    CameraBase.Type

    Camera type, if it was retrieved correctly. Perspective otherwise

    SetCameraType(Type)

    CameraBase.Type typed setter for type string.

    Declaration
    public void SetCameraType(CameraBase.Type cameraType)
    Parameters
    Type Name Description
    CameraBase.Type cameraType

    Camera type

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)