docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRPointCloud

    Represents the session relative data for the XRPointCloudSubsystem. XRPointClouds are usually created by GetChanges(Allocator).

    Implements
    ITrackable
    IEquatable<XRPointCloud>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    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 GetChanges(Allocator).

    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

    defaultValue

    Gets a default-initialized XRPointCloud. This may be different from the zero-initialized version (for example, the pose is Pose.identity instead of zero-initialized).

    Declaration
    public static XRPointCloud defaultValue { get; }
    Property Value
    Type Description
    XRPointCloud

    nativePtr

    Get the native pointer associated with this point cloud.

    Declaration
    public 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 Pose pose { get; }
    Property Value
    Type Description
    Pose
    Remarks

    Point cloud points are relative to this pose.

    trackableId

    Get the TrackableId associated with this point cloud.

    Declaration
    public TrackableId trackableId { get; }
    Property Value
    Type Description
    TrackableId

    trackingState

    Get the TrackingState associated with this point cloud.

    Declaration
    public TrackingState trackingState { get; }
    Property Value
    Type Description
    TrackingState

    Methods

    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 XRPointCloud and Equals(XRPointCloud) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRPointCloud)

    Tests for equality.

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

    The other XRPointCloud to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRPointCloud, 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()

    Operators

    operator ==(XRPointCloud, XRPointCloud)

    Tests for equality. Same as Equals(XRPointCloud).

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

    The left-hand side of the comparison.

    XRPointCloud rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

    True if lhs is equal to rhs, otherwise false.

    operator !=(XRPointCloud, XRPointCloud)

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

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

    The left-hand side of the comparison.

    XRPointCloud rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    bool

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

    Implements

    ITrackable
    IEquatable<T>
    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)