docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CameraState

    Class containing data regarding position, rotation and viewport size of a camera

    Inheritance
    object
    CameraState
    Implements
    ICameraUpdater
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    [Serializable]
    public class CameraState : ICameraUpdater

    Properties

    Name Description
    distanceFromPivot

    The distance from pivot

    farClip

    The far clip distance from camera

    fieldOfView

    The field of view of the camera

    forward

    The Forward vector in world space

    nearClip

    The near clip distance from camera

    pivot

    The position of the camera pivot

    position

    The position of the camera

    right

    The Right vector in world space

    rotation

    The rotation of the camera arround the pivot

    up

    The Up vector in world space

    viewSize

    The size of the view

    Methods

    Name Description
    Reset()

    Reset the State to its default values

    UpdateCamera(Camera)

    Update a Camera component and its transform with this state values

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)