Method TryAttachReferencePoint
TryAttachReferencePoint(TrackableId, Pose, out XRReferencePoint)
Attempts to create a new reference attached to the trackable with id trackableToAffix
.
The behavior of the reference point depends on the type of trackable to which this reference point is attached.
Declaration
[Obsolete("XRReferencePointSubsystem.TryAttachReferencePoint() has been deprecated. Use XRAnchorSubsystem.TryAttachAnchor() instead (UnityUpgradable) -> UnityEngine.XR.ARSubsystems.XRAnchorSubsystem.TryAttachAnchor(TrackableId, Pose, XRAnchor)", true)]
public bool TryAttachReferencePoint(TrackableId trackableToAffix, Pose pose, out XRReferencePoint referencePoint)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableToAffix | The id of the trackable to which to attach. |
Pose | pose | The pose, in session space, of the reference point to create. |
XRReferencePoint | referencePoint | The new reference point. Only valid if this method returns |
Returns
Type | Description |
---|---|
bool |
|