Struct ARTrackablesParentTransformChangedEventArgs
Event arguments for the TrackablesParentTransformChanged event.
Inherited Members
Namespace: Unity.XR.CoreUtils
Syntax
public readonly struct ARTrackablesParentTransformChangedEventArgs : IEquatable<ARTrackablesParentTransformChangedEventArgs>
Constructors
ARTrackablesParentTransformChangedEventArgs(XROrigin, Transform)
Constructs an ARTrackablesParentTransformChangedEventArgs.
Declaration
public ARTrackablesParentTransformChangedEventArgs(XROrigin origin, Transform trackablesParent)
Parameters
Type | Name | Description |
---|---|---|
XROrigin | origin | The XROrigin whose TrackablesParent has changed. |
Transform | trackablesParent | The parent transform for all
ARTrackables
under the |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentNullException | Thrown if |
Properties
Origin
(Read Only) The XROrigin whose TrackablesParent has changed.
Declaration
public readonly XROrigin Origin { get; }
Property Value
Type | Description |
---|---|
XROrigin |
TrackablesParent
(Read Only) The parent transform for all ARTrackables under an XROrigin.
Declaration
public readonly Transform TrackablesParent { get; }
Property Value
Type | Description |
---|---|
Transform |
Methods
Equals(Object)
Compares for equality.
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare against. |
Returns
Type | Description |
---|---|
Boolean | Returns true if |
Overrides
Equals(ARTrackablesParentTransformChangedEventArgs)
Compares for equality.
Declaration
public readonly bool Equals(ARTrackablesParentTransformChangedEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesParentTransformChangedEventArgs | other | The other ARTrackablesParentTransformChangedEventArgs to compare against. |
Returns
Type | Description |
---|---|
Boolean | Returns true if each property in |
Implements
GetHashCode()
Generates a hash code suitable for using in a HashSet
or Dictionary
.
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns a hash code suitable for using in a |
Overrides
Operators
Equality(ARTrackablesParentTransformChangedEventArgs, ARTrackablesParentTransformChangedEventArgs)
Compares for equality. Same as Equals(ARTrackablesParentTransformChangedEventArgs).
Declaration
public static bool operator ==(ARTrackablesParentTransformChangedEventArgs lhs, ARTrackablesParentTransformChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesParentTransformChangedEventArgs | lhs | The ARTrackablesParentTransformChangedEventArgs to compare with |
ARTrackablesParentTransformChangedEventArgs | rhs | The ARTrackablesParentTransformChangedEventArgs to compare with |
Returns
Type | Description |
---|---|
Boolean | Returns true if |
Inequality(ARTrackablesParentTransformChangedEventArgs, ARTrackablesParentTransformChangedEventArgs)
Compares for inequality.
Declaration
public static bool operator !=(ARTrackablesParentTransformChangedEventArgs lhs, ARTrackablesParentTransformChangedEventArgs rhs)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesParentTransformChangedEventArgs | lhs | The ARTrackablesParentTransformChangedEventArgs to compare with |
ARTrackablesParentTransformChangedEventArgs | rhs | The ARTrackablesParentTransformChangedEventArgs to compare with |
Returns
Type | Description |
---|---|
Boolean | Returns false if |