Class CameraUtils | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class CameraUtils

    Camera related EditorVR utilities

    Inheritance
    Object
    CameraUtils
    Namespace: UnityEditor.Experimental.EditorVR.Utilities
    Syntax
    public static class CameraUtils

    Methods

    GetCameraRig()

    Declaration
    public static Transform GetCameraRig()
    Returns
    Type Description
    Transform

    GetMainCamera()

    Declaration
    public static Camera GetMainCamera()
    Returns
    Type Description
    Camera

    LocalRotateTowardCamera(Transform)

    Returns a local roll-only rotation which will face the object toward the camera

    Declaration
    public static Quaternion LocalRotateTowardCamera(Transform parentTransform)
    Parameters
    Type Name Description
    Transform parentTransform

    The parent transform

    Returns
    Type Description
    Quaternion
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX