docs.unity.cn
    Show / Hide Table of Contents

    Struct XRPointCloud

    Represents the session relative data for the XRDepthSubsystem. XRPointClouds are usually created by .

    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public struct XRPointCloud : ITrackable, IEquatable<XRPointCloud>

    Constructors

    XRPointCloud(TrackableId, Pose, TrackingState, IntPtr)

    Constructs a new XRPointCloud. This is a container for the session-relative data. These are typically created by .

    Declaration
    public XRPointCloud(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId associated with the point cloud.

    Pose pose

    The Pose associated with the point cloud.

    TrackingState trackingState

    The TrackingState associated with the point cloud.

    IntPtr nativePtr

    The native pointer associated with the point cloud.

    Properties

    nativePtr

    Get the native pointer associated with this point cloud.

    Declaration
    public readonly IntPtr nativePtr { get; }
    Property Value
    Type Description
    IntPtr
    Remarks

    The data this pointer points to is implementation defined.

    pose

    Get the Pose associated with this point cloud.

    Declaration
    public readonly Pose pose { get; }
    Property Value
    Type Description
    Pose
    Implements
    ITrackable.pose
    Remarks

    Point cloud points are relative to this pose.

    trackableId

    Get the TrackableId associated with this point cloud.

    Declaration
    public readonly TrackableId trackableId { get; }
    Property Value
    Type Description
    TrackableId
    Implements
    ITrackable.trackableId

    trackingState

    Get the TrackingState associated with this point cloud.

    Declaration
    public readonly TrackingState trackingState { get; }
    Property Value
    Type Description
    TrackingState
    Implements
    ITrackable.trackingState

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean

    Equals(XRPointCloud)

    Declaration
    public bool Equals(XRPointCloud other)
    Parameters
    Type Name Description
    XRPointCloud other
    Returns
    Type Description
    Boolean

    GetDefault()

    Gets a default-initialized XRPointCloud. This may be different from the zero-initialized version, e.g., the pose is Pose.identity instead of zero-initialized.

    Declaration
    public static XRPointCloud GetDefault()
    Returns
    Type Description
    XRPointCloud

    A default XRPointCloud.

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Operators

    Equality(XRPointCloud, XRPointCloud)

    Declaration
    public static bool operator ==(XRPointCloud lhs, XRPointCloud rhs)
    Parameters
    Type Name Description
    XRPointCloud lhs
    XRPointCloud rhs
    Returns
    Type Description
    Boolean

    Inequality(XRPointCloud, XRPointCloud)

    Declaration
    public static bool operator !=(XRPointCloud lhs, XRPointCloud rhs)
    Parameters
    Type Name Description
    XRPointCloud lhs
    XRPointCloud rhs
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, January 7, 2022
    Terms of use