docs.unity.cn
    Show / Hide Table of Contents

    Class SceneViewCameraSettings

    Used to store and apply scene view camera settings

    Inheritance
    Object
    SceneViewCameraSettings
    Namespace: Unity.Tutorials.Core.Editor
    Syntax
    public class SceneViewCameraSettings : object

    Properties

    CameraMode

    The Scene View camera mode

    Declaration
    public SceneViewCameraMode CameraMode { get; }
    Property Value
    Type Description
    SceneViewCameraMode

    Enabled

    Are these camera settings going to be used?

    Declaration
    public bool Enabled { get; }
    Property Value
    Type Description
    Boolean

    FocusMode

    Determines how the camera position is applied when loaded

    Declaration
    public SceneViewFocusMode FocusMode { get; }
    Property Value
    Type Description
    SceneViewFocusMode

    FrameObject

    The object that can be framed by the camera. Applicable if SceneViewFocusMode.FrameObject used as FocusMode.

    Declaration
    public SceneObjectReference FrameObject { get; }
    Property Value
    Type Description
    SceneObjectReference

    Orthographic

    Is the camera ortographic?

    Declaration
    public bool Orthographic { get; }
    Property Value
    Type Description
    Boolean

    Pivot

    The point the camera will look at

    Declaration
    public Vector3 Pivot { get; }
    Property Value
    Type Description
    Vector3

    Rotation

    The rotation of the camera

    Declaration
    public Quaternion Rotation { get; }
    Property Value
    Type Description
    Quaternion

    Size

    Ortographic size of the camera

    Declaration
    public float Size { get; }
    Property Value
    Type Description
    Single

    Methods

    Apply()

    Applies the saved camera settings to the current scene camera

    Declaration
    public void Apply()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, July 8, 2021