Struct ARTrackablesParentTransformChangedEventArgs
Event arguments for the trackablesParentTransformChanged event.
Namespace: UnityEngine.XR.ARFoundation
Syntax
public readonly struct ARTrackablesParentTransformChangedEventArgs : IEquatable<ARTrackablesParentTransformChangedEventArgs>
Constructors
ARTrackablesParentTransformChangedEventArgs(ARSessionOrigin, Transform)
Constructs an ARTrackablesParentTransformChangedEventArgs.
Declaration
public ARTrackablesParentTransformChangedEventArgs(ARSessionOrigin sessionOrigin, Transform trackablesParent)
Parameters
Type | Name | Description |
---|---|---|
ARSessionOrigin | sessionOrigin | The ARSessionOrigin whose trackablesParent has changed. |
Transform | trackablesParent | The parent transform for all ARTrackables under the
|
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentNullException | Thrown if |
Properties
sessionOrigin
(Read Only) The ARSessionOrigin whose trackablesParent has changed.
Declaration
public readonly ARSessionOrigin sessionOrigin { get; }
Property Value
Type | Description |
---|---|
ARSessionOrigin |
trackablesParent
(Read Only) The parent transform for all ARTrackables under a ARSessionOrigin.
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 |
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 |
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 |
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 |