How do I create a switch button?
I would like to create a switch button where you can tap on the screen to turn a logo on and off a filter.
adding a switch so that the user can turn the logo (left shoulder) on and off, and make the background (with a switch) blue rather than transparent
Hey Joshua!
Have you checked this UI Template yet?
Here is a link: https://lensstudio.snapchat.com/guides/scripting/helper-scripts/user-interface/
This might help you to get started in creating a switch button like you mentioned.
Let me know if that helps you.
- Julien van Dorland
I looked at that but I'm not sure how to make it set to where the background provided in the picture changes color from that UI template
You can add a behavior script, set the trigger on tap,select your logo and set the response type to Set Enabled. Then the action would ideally be toggle so you get the on and off switch. If you want the effect to not be visible when the lens starts, just disable it in the objects panel and everytime you tap it will toggle it on and off. Hope this helps!