Custom Location Connected Lens
Location Based Experience brings together Custom Location and the Spectacles Sync Kit to enable persistent, shared AR experiences tied to real-world environments. By pre-scanning a location, creators can deliver seamless multiplayer interactions without the need to restart the mapping flow each time the Lens is launched. New features like Guided Mode and Same Session Setup further simplify the experience, making development faster and more efficient.
Creating a Custom Location
A detailed workflow for setting up a Custom Location can be found in the Custom Location documentation.
Currently this feature only supports one location. Custom Location Group
is not supported.
Setting up Colocated World
Once a Custom Location has been created in Lens Studio, go to Colocated World
Scene Object and place Location
asset into Located At component
.
Creating a Location Mesh Visualization for Content Placement
When using a Custom Location for a Connected Lens, the origin point (0, 0, 0)
does not align with the device's position upon completing the mapping process. Instead, the origin is determined by the location where the map was originally generated in Spectacles. Including the Location Mesh
in Lens Studio helps accurately visualize and position content within the scene.
- To create a
Location Mesh
andLocation Material
, click the“+”
button in Lens Studio and selectLocation Mesh
andLocation Material
from the options.
- In the
Location Mesh
asset, assign theLocation
asset to theLocation
input field.
- Create a Scene Object with a
RenderMeshVisual
component, then assign theLocation Mesh
andLocation Material
to their respective input fields.
- The Scene View should display the Location Mesh with Material applied.
The transform of the Location Mesh Scene Object should remain at its default position (0, 0, 0). Modifying the transform will result in misalignment within the Lens.