Method TryAttachAnchor
TryAttachAnchor(TrackableId, Pose, out XRAnchor)
Should create a new anchor "attached" to the trackable with id attachedToId.
The behavior of the anchor depends on the type of trackable to which this anchor is attached and
might be implementation-defined.
Declaration
public virtual bool TryAttachAnchor(TrackableId attachedToId, Pose pose, out XRAnchor anchor)
Parameters
| Type | Name | Description |
|---|---|---|
| TrackableId | attachedToId | The id of the trackable to which to attach. |
| Pose | pose | The pose, in session space, of the anchor to create. |
| XRAnchor | anchor | The new anchor. Must be valid only if this method returns |
Returns
| Type | Description |
|---|---|
| bool |
|