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

    Class ARCoreFaceSubsystem

    The ARCore implementation of the XRFaceSubsystem. Do not create this directly. Use the SubsystemManager instead.

    Inheritance
    Object
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>
    XRFaceSubsystem
    ARCoreFaceSubsystem
    Inherited Members
    XRFaceSubsystem.GetChanges(Allocator)
    XRFaceSubsystem.GetFaceMesh(TrackableId, Allocator, XRFaceMesh)
    XRFaceSubsystem.requestedMaximumFaceCount
    XRFaceSubsystem.currentMaximumFaceCount
    XRFaceSubsystem.supportedFaceCount
    TrackingSubsystem<XRFace, XRFaceSubsystem, XRFaceSubsystemDescriptor, XRFaceSubsystem.Provider>.GetChanges(Allocator)
    Namespace: UnityEngine.XR.ARCore
    Syntax
    [Preserve]
    public class ARCoreFaceSubsystem : XRFaceSubsystem

    Methods

    GetRegionPoses(TrackableId, Allocator, ref NativeArray<ARCoreFaceRegionData>)

    Gets all the available ARCoreFaceRegions.

    Declaration
    public void GetRegionPoses(TrackableId trackableId, Allocator allocator, ref NativeArray<ARCoreFaceRegionData> regions)
    Parameters
    Type Name Description
    TrackableId trackableId

    The id associated with the face to query.

    Allocator allocator

    The allocator to use if regions requires a resize. C# Jobs are used, so the allocator must be either Allocator.TempJob or Allocator.Persistent.

    NativeArray<ARCoreFaceRegionData> regions

    An array of ARCoreFaceRegionDatas. If regions is allocated and the correct size, then its memory is reused. Otherwise, it is reallocated.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if allocator is Allocator.Temp.

    InvalidOperationException

    Thrown if allocator is Allocator.None.

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