Method AddAnchor
AddAnchor(Pose)
Attempts to add an ARAnchor with the given Pose
.
Declaration
[Obsolete("Add an anchor using AddComponent<ARAnchor>(). (2020-10-06)")]
public ARAnchor AddAnchor(Pose pose)
Parameters
Type | Name | Description |
---|---|---|
Pose | pose | The pose, in Unity world space, of the ARAnchor. |
Returns
Type | Description |
---|---|
ARAnchor | A new ARAnchor if successful, otherwise |
Remarks
If GetPrefab()
is not null, a new instance of that prefab will be instantiated. Otherwise, a
new GameObject
will be created. In either case, the resulting
GameObject
will have an ARAnchor component on it.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if this |
InvalidOperationException | Thrown if the underlying subsystem is |