ARMarker Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |