Dela via


ARMarker Class

Definition

Represents a marker detected by an AR device.

[UnityEngine.DefaultExecutionOrder(-2147483646)]
[UnityEngine.DisallowMultipleComponent]
public sealed class ARMarker : UnityEngine.XR.ARFoundation.ARTrackable<Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker,Microsoft.MixedReality.OpenXR.ARMarker>
[<UnityEngine.DefaultExecutionOrder(-2147483646)>]
[<UnityEngine.DisallowMultipleComponent>]
type ARMarker = class
    inherit ARTrackable<XRMarker, ARMarker>
Public NotInheritable Class ARMarker
Inherits ARTrackable(Of XRMarker, ARMarker)
Inheritance
UnityEngine.XR.ARFoundation.ARTrackable<XRMarker,ARMarker>
ARMarker
Attributes
UnityEngine.DefaultExecutionOrderAttribute UnityEngine.DisallowMultipleComponentAttribute

Remarks

Generated by the ARMarkerManager when an AR device detects a marker in the environment.

Constructors

ARMarker()

Properties

center

The center relative to the pose in the X, Y plane.

lastSeenTime

The time when the marker was last seen. Comparable to UnityEngine.Time.realtimeSinceStartup.

markerType

The type of marker. Currently we only support markert os QRCode type.

nativePtr

Get a native pointer associated with this marker.

size

The physical size (dimensions) of the marker in meters.

transformMode

The type of transform to apply on the marker.

Methods

GetDecodedString()

Get the decoded string associated with this marker.

GetQRCodeProperties()

Get the properties associated with this QRCode marker.

GetRawData(Allocator)

Get the raw data associated with this marker.

Applies to