XRShareableAnchor
Represents a shareable anchor trackable by the shareable anchor subsystem.
Summary
Inheritance
Inherits from:ITrackable, IEquatable< XRShareableAnchor >
Constructors and Destructors |
|
|---|---|
XRShareableAnchor(TrackableId id, Pose pose, TrackingState state, IntPtr nativePtr, TrackableId parentId, XRShareableAnchorHosts host, SerializableGuid shareableId)
Constructs a new XRShareableAnchor.
|
|
XRShareableAnchor(TrackableId id, Pose pose, TrackingState state, IntPtr nativePtr, TrackableId parentId)
Constructs a default anchor.
|
Public static attributes |
|
|---|---|
defaultValue =>
new XRShareableAnchor(
TrackableId.invalidId,
Pose.identity,
TrackingState.None,
IntPtr.Zero,
TrackableId.invalidId)
|
Gets a default-initialized XRShareableAnchor.
|
Public attributes |
|
|---|---|
host => _host
|
Gets the host of this shareable anchor.
|
nativePtr => _nativePtr
|
IntPtr
Gets a native pointer to additional provider-specific data.
|
parentId => _parentId
|
TrackableId
Gets the TrackableId of the parent of this tracked object.
|
pose => _pose
|
Pose
Gets the pose of the shareable anchor in the Unity world space.
|
shareableId => _shareableId
|
SerializableGuid
Gets the shareable ID to retrieve the anchor from other clients.
|
trackableId => _trackableId
|
TrackableId
Gets the unique identifier for this shareable anchor.
|
trackingState => _state
|
TrackingState
Gets the current tracking state of the shareable anchor.
|
Public functions |
|
|---|---|
Equals(XRShareableAnchor other)
|
bool
Indicates whether every field in this XRShareableAnchor is equal to the corresponding field in other .
|
Equals(object obj)
|
override bool
|
GetHashCode()
|
override int
|
UpdateHost(XRShareableAnchorHosts host, SerializableGuid shareableId)
|
void
Updates host information for a default anchor.
|
Public static functions |
|
|---|---|
operator!=(XRShareableAnchor left, XRShareableAnchor right)
|
bool
Determines whether two XRShareableAnchor instances have different property values.
|
operator==(XRShareableAnchor left, XRShareableAnchor right)
|
bool
Determines whether two XRShareableAnchor instances have exactly the same property values.
|