Method ApplyWorldMap
ApplyWorldMap(ARWorldMap)
Applies an ARWorldMap to the session.
Declaration
public void ApplyWorldMap(ARWorldMap worldMap)
Parameters
Type | Name | Description |
---|---|---|
ARWorldMap | worldMap | An ARWorldMap with which to relocalize the session. |
Remarks
This attempts to relocalize the current session to the given worldMap
. If
relocalization is successful, the stored planes and anchors from the worldMap
are
added to the current session. This is equivalent to setting the
initialWorldMap
property on the session's
ARWorldTrackingConfiguration.
If worldMap
is not valid, this method sets the
initialWorldMap
configuration property to nil
.