class StationaryMarkerMetadata (Niantic.ARDK.Utilities.Marker.StationaryMarkerMetadata)

Overview

class StationaryMarkerMetadata: Niantic.ARDK.Utilities.Marker.MarkerMetadata {
public:
    // fields

    Vector3[] DetectionPointPositions;
    Matrix4x4 RealWorldTransform;

    // methods

    StationaryMarkerMetadata(
        string sessionIdentifier,
        byte[] data,
        Matrix4x4 realWorldTransform,
        Vector3[] detectionPointPositions,
        IMetadataSerializer serializer = null
    );

    override string ToString();
};

Inherited Members

public:
    // enums

    enum MarkerSource;

    // fields

    byte[] Data;
    string SessionIdentifier;

    // properties

    MarkerSource Source;

    // methods

    MarkerMetadata(
        string sessionIdentifier,
        MarkerSource source,
        byte[] data,
        IMetadataSerializer serializer = null
    );

    byte[] Serialize();
    override string ToString();

Detailed Documentation

Methods

StationaryMarkerMetadata(
    string sessionIdentifier,
    byte[] data,
    Matrix4x4 realWorldTransform,
    Vector3[] detectionPointPositions,
    IMetadataSerializer serializer = null
)

StationaryMarkerMetadata will be embedded in markers that are displayed in a stationary location in the real world.

Parameters:

sessionIdentifier

Name of networking session scanners of this marker will join.

data

Any user defined data that should be also embedded in the barcode.

realWorldTransform

Real world-space position (unit: meters) and orientation of the marker relative to the origin of the shared AR space.

detectionPointPositions

Real world-space positions (unit: meters) of the marker points relative to the markerWorldTransform .

serializer

Will use the EmbeddedStationaryMetadataSerializer if this arg is left null.