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

    Class ARKitMeshSubsystemExtensions

    ARKit extension methods to the XRMeshSubsystem.

    Inheritance
    Object
    ARKitMeshSubsystemExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARKit
    Syntax
    public static class ARKitMeshSubsystemExtensions

    Methods

    GetClassificationEnabled(XRMeshSubsystem)

    Whether mesh classification is enabled.

    Declaration
    public static bool GetClassificationEnabled(this XRMeshSubsystem subsystem)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    Returns
    Type Description
    Boolean

    true if the mesh classification is enabled. Otherwise, false.

    GetFaceClassifications(XRMeshSubsystem, TrackableId, Allocator)

    Get the face classifications for the given mesh ID.

    Declaration
    public static NativeArray<ARMeshClassification> GetFaceClassifications(this XRMeshSubsystem subsystem, TrackableId meshId, Allocator allocator)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    TrackableId meshId

    The trackable ID representing the mesh.

    Allocator allocator

    The memory allocator type to use in allocating the native array memory.

    Returns
    Type Description
    NativeArray<ARMeshClassification>

    An array of mesh classifications, one for each face in the mesh.

    SetClassificationEnabled(XRMeshSubsystem, Boolean)

    Sets whether mesh classification should be enabled.

    Declaration
    public static void SetClassificationEnabled(this XRMeshSubsystem subsystem, bool enabled)
    Parameters
    Type Name Description
    XRMeshSubsystem subsystem

    The meshing subsystem.

    Boolean enabled

    Whether the mesh classification should be enabled.

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