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

    Class XRHumanBodySubsystem

    Defines an interface for interacting with human body functionality.

    Inheritance
    Object
    SubsystemWithProvider
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<XRHumanBodySubsystem, XRHumanBodySubsystemDescriptor, XRHumanBodySubsystem.Provider>
    TrackingSubsystem<XRHumanBody, XRHumanBodySubsystem, XRHumanBodySubsystemDescriptor, XRHumanBodySubsystem.Provider>
    XRHumanBodySubsystem
    Inherited Members
    TrackingSubsystem<XRHumanBody, XRHumanBodySubsystem, XRHumanBodySubsystemDescriptor, XRHumanBodySubsystem.Provider>.GetChanges(Allocator)
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.OnCreate()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.OnStart()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.OnStop()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.OnDestroy()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.subsystemDescriptor
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.provider
    SubsystemWithProvider.Start()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnStart()
    SubsystemWithProvider.Stop()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnStop()
    SubsystemWithProvider.Destroy()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnDestroy()
    SubsystemWithProvider.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 class XRHumanBodySubsystem : TrackingSubsystem<XRHumanBody, XRHumanBodySubsystem, XRHumanBodySubsystemDescriptor, XRHumanBodySubsystem.Provider>, ISubsystem

    Constructors

    XRHumanBodySubsystem()

    Construct the subsystem by creating the functionality provider.

    Declaration
    public XRHumanBodySubsystem()

    Properties

    pose2DEnabled

    Whether 2D human body pose estimation is enabled.

    Declaration
    public bool pose2DEnabled { get; }
    Property Value
    Type Description
    Boolean

    true if 2D human body pose estimation is enabled. Otherwise, false.

    pose2DRequested

    Whether 2D human body pose estimation is requested.

    Declaration
    public bool pose2DRequested { get; set; }
    Property Value
    Type Description
    Boolean

    true if 2D human body pose estimation is requested. Otherwise, false.

    pose3DEnabled

    Whether 3D human body pose estimation is enabled.

    Declaration
    public bool pose3DEnabled { get; }
    Property Value
    Type Description
    Boolean

    true if 3D human body pose estimation is enabled. Otherwise, false.

    pose3DRequested

    Whether 3D human body pose estimation is requested.

    Declaration
    public bool pose3DRequested { get; set; }
    Property Value
    Type Description
    Boolean

    true if 3D human body pose estimation is requested. Otherwise, false.

    pose3DScaleEstimationEnabled

    Whether 3D human body scale estimation is enabled.

    Declaration
    public bool pose3DScaleEstimationEnabled { get; }
    Property Value
    Type Description
    Boolean

    true if 3D human body scale estimation is enabled. Otherwise, false.

    pose3DScaleEstimationRequested

    Whether 3D human body scale estimation is requested.

    Declaration
    public bool pose3DScaleEstimationRequested { get; set; }
    Property Value
    Type Description
    Boolean

    true if 3D human body scale estimation is requested. Otherwise, false.

    Methods

    GetChanges(Allocator)

    Query the provider for the trackable changes.

    Declaration
    public override TrackableChanges<XRHumanBody> GetChanges(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The memory allocator to use for allocating the arrays.

    Returns
    Type Description
    TrackableChanges<XRHumanBody>

    The trackable human body changes.

    Overrides
    UnityEngine.XR.ARSubsystems.TrackingSubsystem<UnityEngine.XR.ARSubsystems.XRHumanBody, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRHumanBodySubsystem.Provider>.GetChanges(Unity.Collections.Allocator)

    GetHumanBodyPose2DJoints(Allocator)

    Gets the human body pose 2D joints for the current frame.

    Declaration
    public NativeArray<XRHumanBodyPose2DJoint> GetHumanBodyPose2DJoints(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The allocator to use for the returned array memory.

    Returns
    Type Description
    NativeArray<XRHumanBodyPose2DJoint>

    The array of body pose 2D joints.

    Remarks

    The returned array can be empty if the system is not enabled for human body pose 2D or if the system does not detect a human in the camera image.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown if the implementation does not support human body pose 2D.

    GetSkeleton(TrackableId, Allocator, ref NativeArray<XRHumanBodyJoint>)

    Query the provider for the skeleton joints for the requested trackable identifier.

    Declaration
    public void GetSkeleton(TrackableId trackableId, Allocator allocator, ref NativeArray<XRHumanBodyJoint> skeleton)
    Parameters
    Type Name Description
    TrackableId trackableId

    The human body trackable identifier for which to query.

    Allocator allocator

    The memory allocator to use for the returned arrays.

    NativeArray<XRHumanBodyJoint> skeleton

    The array of skeleton joints to update and returns.

    Register(XRHumanBodySubsystemCinfo)

    Register the descriptor for the human body subsystem implementation.

    Declaration
    public static bool Register(XRHumanBodySubsystemCinfo humanBodySubsystemCinfo)
    Parameters
    Type Name Description
    XRHumanBodySubsystemCinfo humanBodySubsystemCinfo

    The human body subsystem implementation construction information.

    Returns
    Type Description
    Boolean

    true if the descriptor was registered. Otherwise, false.

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