Class CameraUtils | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    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
    In This Article
    • Methods
      • GetCameraRig()
      • GetMainCamera()
      • LocalRotateTowardCamera(Transform)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023