docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesCameraPoseMethods

    Inheritance
    Object
    IUsesCameraPoseMethods
    Namespace: Unity.MARS.Providers
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesCameraPoseMethods

    Methods

    GetPose(IUsesCameraPose)

    Get the current camera pose

    Declaration
    public static Pose GetPose(this IUsesCameraPose obj)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Returns
    Type Description
    Pose

    The current camera pose

    SubscribePoseUpdated(IUsesCameraPose, Action<Pose>)

    Subscribe to the poseUpdated event, which is called when the camera pose changes

    Declaration
    public static void SubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<Pose> poseUpdated

    The delegate to subscribe

    SubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)

    Subscribe to the trackingTypeChanged event, which is called when the camera tracking type changes

    Declaration
    public static void SubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<MRCameraTrackingState> trackingTypeChanged

    The delegate to subscribe

    UnsubscribePoseUpdated(IUsesCameraPose, Action<Pose>)

    Unsubscribe from the poseUpdated event, which is called when the camera pose changes

    Declaration
    public static void UnsubscribePoseUpdated(this IUsesCameraPose obj, Action<Pose> poseUpdated)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<Pose> poseUpdated

    The delegate to unsubscribe

    UnsubscribeTrackingTypeChanged(IUsesCameraPose, Action<MRCameraTrackingState>)

    Unsubscribe from the trackingTypeChanged event, which is called when the camera tracking type changes

    Declaration
    public static void UnsubscribeTrackingTypeChanged(this IUsesCameraPose obj, Action<MRCameraTrackingState> trackingTypeChanged)
    Parameters
    Type Name Description
    IUsesCameraPose obj
    Action<MRCameraTrackingState> trackingTypeChanged

    The delegate to unsubscribe

    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