Struct ARReferencePointUpdatedEventArgs
Holds data relevant to reference point updated events.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: UnityEngine.XR.ARFoundation
Syntax
public struct ARReferencePointUpdatedEventArgs : IEquatable<ARReferencePointUpdatedEventArgs>
Remarks
The ARReferencePointManager uses this struct to pass data to subscribers of its referencePointUpdated event.
Constructors
ARReferencePointUpdatedEventArgs(ARReferencePoint, TrackingState, Pose)
Constructor invoked by the ARReferencePointManager which triggered this event.
Declaration
public ARReferencePointUpdatedEventArgs(ARReferencePoint referencePoint, TrackingState previousTrackingState, Pose previousPose)
Parameters
Type | Name | Description |
---|---|---|
ARReferencePoint | referencePoint | The reference point component that was updated. |
TrackingState | previousTrackingState | The tracking state prior to this update. |
Pose | previousPose | The session-space pose prior to this update. |
Properties
previousPose
The pose of the reference point prior to this update, in Unity world space.
Declaration
public Pose previousPose { get; }
Property Value
Type | Description |
---|---|
Pose |
previousSessionRelativePose
The pose of the reference point prior to this update, in local (session) space.
Declaration
public Pose previousSessionRelativePose { get; }
Property Value
Type | Description |
---|---|
Pose |
previousTrackingState
The previous tracking state of the reference point, prior to this update.
Declaration
public TrackingState previousTrackingState { get; }
Property Value
Type | Description |
---|---|
TrackingState |
referencePoint
The reference point component which was updated.
Declaration
public ARReferencePoint referencePoint { get; }
Property Value
Type | Description |
---|---|
ARReferencePoint |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
Equals(ARReferencePointUpdatedEventArgs)
Declaration
public bool Equals(ARReferencePointUpdatedEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARReferencePointUpdatedEventArgs | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Operators
Equality(ARReferencePointUpdatedEventArgs, ARReferencePointUpdatedEventArgs)
Declaration
public static bool operator ==(ARReferencePointUpdatedEventArgs lhs, ARReferencePointUpdatedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARReferencePointUpdatedEventArgs | lhs | |
ARReferencePointUpdatedEventArgs | rhs |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(ARReferencePointUpdatedEventArgs, ARReferencePointUpdatedEventArgs)
Declaration
public static bool operator !=(ARReferencePointUpdatedEventArgs lhs, ARReferencePointUpdatedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARReferencePointUpdatedEventArgs | lhs | |
ARReferencePointUpdatedEventArgs | rhs |
Returns
Type | Description |
---|---|
System.Boolean |