#Custom Location AR Lens with multiple locations LS 4.55

2 messages · Page 1 of 1 (latest)

proud yacht
#

I am building a large custom location AR lens for a big client and am struggling to make multiple locations work correctly. I have multiple location id's and location meshes in the project, and can get them to appear in the correct places with the correct content, but only if I find the intial location first. If I attempt to find the second location before the first location it will not load. I have been scouring through all the documentation and it seems the the template does not match the documentation correctly. Here (https://developers.snap.com/lens-studio/platform-solutions/location-ar/custom-landmarker#adding-multiple-custom-locations) it shows the send behaviour triggers boolean and check box on a script called CustomLandmarkerController as a component of the scene object '4 - Custom Landmark [PLACE_CONTENT_HERE]' but that is not how it is actually implemented in the template. The template has the send behaviour triggers on the StatusController script which is a component of the scene object 3 - Status Controller. It looks to me like I require the 'CustomLandmarkerController' script in order to have multiple custom locations work the way I need them to, but this script is nowhere to be found in the current template. Can anyone point me in the direction of where I can find this script or a working setup for multiple custom locations which load when each individual location is found, rather than all loading when one specific location is found.

severe flame
# proud yacht I am building a large custom location AR lens for a big client and am struggling...

Hello, the send behaviour trigger is not needed for multiple location support. The CustomLocationController script has no logic in it. StatusController is the main logic of this Lens. You just need to duplicate out the Custom Location sceneObject and connect a different location asset to the locatedAt component and then put different AR content under each Custom Location sceneObject. The template is slightly different than documentation but the core logic is the same. Maybe send some screenshots of your LS project to help with troubleshooting. Thanks!