join us on Discord for support, updates, and all things Snap AR! See you there!
How flexible is lens management from standalone app?
Hey guys! We are doing research on making a mobile AR game using Lens Studio, both publishing it to snapchat and using it within our app with extended functionalities (configuring difficulty, storing game points of a user etc.) and need some help with checking if thats possible.
So as far as we understand, its possible to build game mechanics in Lens studio, then save the lens and import it into our app via Camera Kit. The question is - how flexible this lens can be in terms of
- pass parameters into lens before game start (we need to parametrise game session using our database, user's playing history, which will adjust some in-game layout and difficulty)
- extract game results from lens on end of game, to store it in our database, to have experience points showing inside our app
Answers
-
@Oleg Poddubny Forwarding our eng's response here:
Yeah this is all possible through Remote APIs and launch parameters outlined here: https://docs.snap.com/camera-kit/guides/tutorials/mobile-tutorials/communicating-between-lenses-and-app
Also, new tutorial https://docs.snap.com/camera-kit/guides/tutorials/mobile-tutorials/import-image-tutorial covers passing image data into a Lens at runtime.
0