docs.unity3d.com
    Show / Hide Table of Contents

    Class MARSCamera

    The camera controller for MARS This behavior subscribes to IUsesCameraPose and IUsesCameraProjectionMatrix to update the main Camera and its Transform. It is automatically added to the camera when MARSSession sets itself up and must remain present in the scene for MARS to work.

    Inheritance
    Object
    MARSCamera
    Namespace: Unity.MARS
    Syntax
    public class MARSCamera : MonoBehaviour, IUsesCameraPose, IFunctionalitySubscriber<IProvidesCameraPose>, IUsesCameraProjectionMatrix, IFunctionalitySubscriber<IProvidesCameraProjectionMatrix>, IUsesFunctionalityInjection, ISimulatable

    Properties

    DisablePoseDriving

    If true, MARSCamera will not update the pose of its transform

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

    Extension Methods

    IUsesCameraPoseMethods.GetPose(IUsesCameraPose)
    IUsesCameraPoseMethods.SubscribePoseUpdated(IUsesCameraPose, Action<Pose>)
    IUsesCameraPoseMethods.UnsubscribePoseUpdated(IUsesCameraPose, Action<Pose>)
    IUsesCameraPoseMethods.SubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)
    IUsesCameraPoseMethods.UnsubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)
    IUsesCameraProjectionMatrixMethods.GetProjectionMatrix(IUsesCameraProjectionMatrix)
    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