Heads up! We're sunsetting this forum to streamline our community space.
join us on Discord for support, updates, and all things Snap AR! See you there!
join us on Discord for support, updates, and all things Snap AR! See you there!
Comments
-
I was able to solve both issues after playing around a bit. For others struggling with this, here is what I ended up with: session.lenses.repository.get(LensesComponent.Repository.QueryCriteria.ById(WATCH_LENS_ID, LENS_GROUP_ID)) { result -> result.whenHasFirst { lens -> session.lenses.processor.apply(lens) }}
-
But I also have the question: If I have a Lens Group with multiple lenses, but want to apply a specific lens (not the first one), how would I do that?
-
Thanks. I can get it to compile with that code, but it's crashing. The crash logs are obfuscated - the best I get is: java.lang.NullPointerException: Attempt to invoke interface method 'void t0.a.b(java.lang.String, java.lang.Object[])' on a null object reference Here is my code:…
-
Related question / different way of asking the question: How can I get/create a Lens object?