docs.unity3d.com
    目次を表示する/隠す

    Class XRObjectTrackingSubsystem.Provider

    For AR implementors: implement this class to provide support for object tracking.

    Inheritance
    Object
    SubsystemProvider
    UnityEngine.SubsystemsImplementation.SubsystemProvider<XRObjectTrackingSubsystem>
    XRObjectTrackingSubsystem.Provider
    Inherited Members
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRObjectTrackingSubsystem>.TryInitialize()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRObjectTrackingSubsystem>.Start()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRObjectTrackingSubsystem>.Stop()
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRObjectTrackingSubsystem>.Destroy()
    UnityEngine.SubsystemsImplementation.SubsystemProvider.running
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class Provider : SubsystemProvider<XRObjectTrackingSubsystem>

    Properties

    library

    The library that contains the reference objects for which to scan. If this is not null, the provider should begin scanning for the objects in the library. If null, the provider should stop scanning for objects.

    Declaration
    public virtual XRReferenceObjectLibrary library { set; }
    Property Value
    Type Description
    XRReferenceObjectLibrary

    Methods

    GetChanges(XRTrackedObject, Allocator)

    Get the changes to XRTrackedObjects (added, updated, and removed) since the last call to this method. This is typically invoked once per frame.

    Declaration
    public abstract TrackableChanges<XRTrackedObject> GetChanges(XRTrackedObject template, Allocator allocator)
    Parameters
    Type Name Description
    XRTrackedObject template

    A 'template' XRTrackedObject. XRTrackedObject might have fields added to it in the future; this template allows you to fill the arrays of added, updated, and removed with default values before copying in data from your own memory buffer.

    Allocator allocator

    The allocator to use for the added, updated, and removed arrays.

    Returns
    Type Description
    TrackableChanges<XRTrackedObject>

    A new TrackableChanges<T> containing the changes since the last call to this method, allocated with allocator.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)