interface IUpdatableARCamera (Niantic.ARDK.AR.Camera.IUpdatableARCamera)

Overview

API to provide tooling for updating the native plugin's understanding of Unity's current screen orientation and resolution. More...

interface IUpdatableARCamera: Niantic.ARDK.AR.IARCamera {
    // methods

    void UpdateDisplayGeometry(
        ScreenOrientation orientation,
        int viewportWidth,
        int viewportHeight
    );
};

Inherited Members

public:
    // properties

    Resolution CPUImageResolution;
    CameraIntrinsics CPUIntrinsics;
    Resolution ImageResolution;
    CameraIntrinsics Intrinsics;
    Matrix4x4 ProjectionMatrix;
    TrackingState TrackingState;
    TrackingStateReason TrackingStateReason;
    Matrix4x4 Transform;
    float WorldScale;

    // methods

    Matrix4x4 CalculateProjectionMatrix(
        ScreenOrientation orientation,
        int viewportWidth,
        int viewportHeight,
        float nearClipPlane,
        float farClipPlane
    );

    Matrix4x4 GetViewMatrix(ScreenOrientation orientation);

    Vector2 ProjectPoint(
        Vector3 point,
        ScreenOrientation orientation,
        int viewportWidth,
        int viewportHeight
    );

Detailed Documentation

API to provide tooling for updating the native plugin's understanding of Unity's current screen orientation and resolution.

注釈

This will be moved to the IARCamera API in a future release.

Methods

void UpdateDisplayGeometry(
    ScreenOrientation orientation,
    int viewportWidth,
    int viewportHeight
)

Update the display geometry when orientation has changed. This function needs to be called before retrieving view/displayTransform/projection matrices on Android.

Parameters:

orientation

The current orientation of the interface.

viewportWidth

Viewport width, in pixels.

viewportHeight

Viewport height, in pixels.