Struct ARTrackablesParentTransformChangedEventArgs
Event arguments for the TrackablesParentTransformChanged event.
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: Unity.XR.CoreUtils.dll
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 XROrigin Origin { get; }
Property Value
Type | Description |
---|---|
XROrigin |
TrackablesParent
(Read Only) The parent transform for all ARTrackables under an XROrigin.
Declaration
public Transform TrackablesParent { get; }
Property Value
Type | Description |
---|---|
Transform |
Methods
Equals(object)
Compares for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare against. |
Returns
Type | Description |
---|---|
bool | Returns true if |
Overrides
Equals(ARTrackablesParentTransformChangedEventArgs)
Compares for equality.
Declaration
public bool Equals(ARTrackablesParentTransformChangedEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
ARTrackablesParentTransformChangedEventArgs | other | The other ARTrackablesParentTransformChangedEventArgs to compare against. |
Returns
Type | Description |
---|---|
bool | Returns true if each property in |
GetHashCode()
Generates a hash code suitable for using in a HashSet
or Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Returns a hash code suitable for using in a |
Overrides
Operators
operator ==(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 |
---|---|
bool | Returns true if |
operator !=(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 |
---|---|
bool | Returns false if |