interface IARAnchor (Niantic.ARDK.AR.Anchors.IARAnchor)

Overview

An anchor is anything in the physical environment that can be tracked by the AR session. More…

interface IARAnchor: IDisposable {
    // properties

    AnchorType AnchorType;
    Guid Identifier;
    Matrix4x4 Transform;
};

// direct descendants

interface IARImageAnchor;
interface IARPlaneAnchor;

Detailed Documentation

An anchor is anything in the physical environment that can be tracked by the AR session.

Note

To track the position and orientation of static physical or virtual objects relative to the camera, use the IARSession.AddAnchor(transform) method to add them to your AR session.

AR sessions can also detect and track IARPlaneAnchor and IARImageAnchor objects if configured to do so.

Properties

AnchorType AnchorType

The type of this anchor (See AnchorType).

Guid Identifier

A unique identifier representing this anchor.

Matrix4x4 Transform

Position, rotation and scale of the anchor in the coordinate space of the AR session it is being tracked in.