docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRPointCloudData

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

    Implements
    IEquatable<XRPointCloudData>
    IDisposable
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    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 if these exist.

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

    identifiers

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

    Declaration
    public NativeArray<ulong> identifiers { get; set; }
    Property Value
    Type Description
    NativeArray<ulong>
    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 if these exist.

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

    Methods

    Dispose()

    Checks for the existence of the NativeArrays and disposes them.

    Declaration
    public void Dispose()

    Equals(object)

    Tests for equality.

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

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRPointCloudData and Equals(XRPointCloudData) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRPointCloudData)

    Tests for equality.

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

    The other XRPointCloudData to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRPointCloudData, otherwise false.

    GetHashCode()

    Generates a hash suitable for use with containers like HashSet and Dictionary.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code generated from this object's fields.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this XRPointCloudData.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of this XRPointCloudData.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(XRPointCloudData, XRPointCloudData)

    Tests for equality. Same as Equals(XRPointCloudData).

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

    The left-hand side of the comparison.

    XRPointCloudData rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(XRPointCloudData, XRPointCloudData)

    Tests for inequality. Same as !Equals(XRPointCloudData).

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

    The left-hand side of the comparison.

    XRPointCloudData rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is not equal to rhs, otherwise false.

    Implements

    IEquatable<T>
    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)