次の方法で共有


ARMarkerManager Class

Definition

A manager for ARMarkers. Creates, updates, and removes GameObjects in response to detected surfaces in the physical environment.

[UnityEngine.DefaultExecutionOrder(-2147483647)]
[UnityEngine.DisallowMultipleComponent]
[UnityEngine.RequireComponent(typeof(UnityEngine.XR.ARFoundation.ARSessionOrigin))]
public sealed class ARMarkerManager : UnityEngine.XR.ARFoundation.ARTrackableManager<Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarkerSubsystem,Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarkerSubsystemDescriptor,Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarkerSubsystem.Provider,Microsoft.MixedReality.OpenXR.ARSubsystems.XRMarker,Microsoft.MixedReality.OpenXR.ARMarker>
[<UnityEngine.DefaultExecutionOrder(-2147483647)>]
[<UnityEngine.DisallowMultipleComponent>]
[<UnityEngine.RequireComponent(typeof(UnityEngine.XR.ARFoundation.ARSessionOrigin))>]
type ARMarkerManager = class
    inherit ARTrackableManager<XRMarkerSubsystem, XRMarkerSubsystemDescriptor, XRMarkerSubsystem.Provider, XRMarker, ARMarker>
Public NotInheritable Class ARMarkerManager
Inherits ARTrackableManager(Of XRMarkerSubsystem, XRMarkerSubsystemDescriptor, XRMarkerSubsystem.Provider, XRMarker, ARMarker)
Inheritance
ARMarkerManager
Attributes
UnityEngine.DefaultExecutionOrderAttribute UnityEngine.DisallowMultipleComponentAttribute UnityEngine.RequireComponentAttribute

Constructors

ARMarkerManager()

Fields

defaultTransformMode

Default TransformMode for newly detected markers.

enabledMarkerTypes

The list of ARMarkerTypes that will be detected.

markerPrefab

Getter or setter for the Marker Prefab.

Properties

Instance

Singleton instance for ARMarkerManager

Methods

GetDecodedString(TrackableId)

Get decoded string for an existing ARMarker.

GetMarker(TrackableId)

Attempt to retrieve an existing ARMarker by trackableId.

GetQRCodeProperties(TrackableId)

Get QR code properties for an existing XRMarker of type QRCode.

GetRawData(TrackableId, Allocator)

Get raw data for an existing ARMarker.

SetTransformMode(TrackableId, TransformMode)

Set transform mode of an existing ARMarker.

Events

markersChanged

Invoked when markers have changed (been added, updated, or removed).

Applies to