Struct XRPointCloudData | AR Subsystems | 3.1.10
docs.unity3d.com
    Show / Hide Table of Contents

    Struct XRPointCloudData

    Represents the data (arrays of positions, confidence values, and identifiers) associated with a point cloud.

    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public struct XRPointCloudData : IEquatable<XRPointCloudData>, IDisposable

    Properties

    confidenceValues

    Confidence values for each point in the point cloud. This array is parallel to positions and identifiers. Use confidenceValues.IsCreated to check for existence.

    Declaration
    public NativeArray<float> confidenceValues { get; set; }
    Property Value
    Type Description
    NativeArray<Single>

    identifiers

    Identifiers for each point in the point cloud. This array is parallel to positions and confidenceValues. Use identifiers.IsCreated to check for existence.

    Declaration
    public NativeArray<ulong> identifiers { get; set; }
    Property Value
    Type Description
    NativeArray<UInt64>
    Remarks

    Identifiers are unique to a particular session, which means you can use the identifier to match a particular point in the point cloud with a previously detected point.

    positions

    Positions for each point in the point cloud. This array is parallel to confidenceValues and identifiers. Use positions.IsCreated to check for existence.

    Declaration
    public NativeArray<Vector3> positions { get; set; }
    Property Value
    Type Description
    NativeArray<Vector3>

    Methods

    Dispose()

    Disposes of the NativeArrays, checking for existence first.

    Declaration
    public void Dispose()

    Equals(Object)

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

    Equals(XRPointCloudData)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Operators

    Equality(XRPointCloudData, XRPointCloudData)

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

    Inequality(XRPointCloudData, XRPointCloudData)

    Declaration
    public static bool operator !=(XRPointCloudData lhs, XRPointCloudData rhs)
    Parameters
    Type Name Description
    XRPointCloudData lhs
    XRPointCloudData rhs
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023