City-Scale AR Template
The City-Scale AR Template allows you to create unique Lens experience specific to select regions of certain cities around the world. The template provides a starter setup for City-Scale AR in addition to three examples City Scale AR Lenses.
Currently, Snap supports London, Downtown Los Angeles and Santa Monica.
Setup
The City Scale AR workflow consists of choosing a part of the city and seeing that part of the city appear in the editor so you can create location based AR content.

Scene Hierarchy panel
The following portion of the Scene Hierarchy panel is responsible for City Scale AR tracking based on the user's location.
- Camera has
Device TrackingComponent set toWorldand aDevice Location TrackingComponent with theLocation Assetinput set toWorld. - City Scale AR is a script that forwards Device Location Tracking events as Behavior triggers.
- City Mesh in Scene Panel.lsc is a Custom Component responsible for making the city mesh that appears in the Scene Panel.
- City Mesh in Lens is a script that makes the city mesh that appears in the Preview Panel and on device.
- City Scale AR Content is a parent object for your AR content. Anything placed here will be hidden until users localised. Objects placed here will also be mirrored when the user flips the camera so that they appear correctly on front and rear camera modes.
Map Panel
The Map Panel lets you tell Lens Studio what part of the City you want to work on.
To open the Map panel, navigate to Windows > Panels > Map, select a City from the dropdown menu, and click on the part of the city you want to see.

The blue icon represents your simulated location within the city. Click on the map to move to a different part of the city.
The red pins indicate Located At components which are used to anchor AR content to a specific city location. Double clicking the map creates a new pin.
Click and drag to pan around. Scroll to zoom in and out.
Preview Panel
It is recommended to set the Preview panel to Interactive preview
Can't see the City Meshes? The city mesh's origin is at sea level, so you will need to move the Interactive Preview Camera. (Right-click and drag to look up and you will see the city meshes.)
- Unlock Y on the bottom right of the preview.
- Increase Camera Speed under the menu in the top right.
- Adjust Camera Position until you are at desired street level.
Right Click & Dragto aimArrow Keysmove the Preview camera relative to your aimShiftraises the Preview camera
Ex 1 - Placing Anchored Content
This example shows AR content placed at specific intersections in London, LA, and Santa Monica. Each group of content lives inside of a LocatedAt Component. Each LocatedAt Component is represented as a Pin in the Map Panel.
Replace Content
In order to replace the content that is already anchored in the world, you can replace any of the objects that are underneath the Pin Objects. On a device, pins automatically move to their real world position after device tracking is found.