Need to disable reset on tap for marker
Hello,
I need to allow events on tap without resetting the model in a marker project. I added the following line, which does enable my tap-based events to occur (in the app only, not in lens studio).
global.touchSystem.touchBlocking = false;
However, the model still resets (flashes in and out) on tap. Is there another way to not only re-enable touch but to disable the reset entirely as well?
Answers
-
Hi @Irina , you have to enable touch blocking: https://docs.snap.com/api/lens-studio/Classes/ScriptObjects#TouchDataProvider
global.touchSystem.touchBlocking = true;
This will disable the swipe, zooming, and all the default touch behaviors. You can re-enable the ones you don't want to block by using
enableTouchBlockingException
, there's an example on that doc page0
Categories
- All Categories
- Snap AR | Categories
- 2.4K Lens Studio
- 228 Camera Kit
- 27 Spectacles