Tappable Question
This sample project demonstrates a flow where a Snapchatter shares a Story with a question, allowing their friends to reply to it.
Tappable Question Mechanic
The tappable question mechanic works as follows:
- The Snapchatter customizes a question widget and posts it as a Story.
- Their friends open the Story, tap on the widget, and reply to the question.
- The Snapchatter views the replies and can take a Snap with these replies.
Usage
To get started go to the Home page in Lens Studio and find the Tappable Widget
card in the Sample Project section. Click on the project card to download the project.
You can also download a Tappable Question Widget
custom component from the Asset Library in the Featured
folder.
If you use the custom component independently of the sample project, ensure that the Camera
containing the component has a Canvas
component with World
Unit Type.
Tappable Question Widget
custom component can only be used in 2D space. It requires to be placed under the Orthographic Camera and Canvas component with World
Unit Type selected.
Customize Widget
The question widget can be customized using Tappable Question Widget
custom component.
Manipulated Widget
checkbox: If enabled, the Snapchatter can drag, move, and rotate the widget. If disabled, the widget is static.Question Option
:Editable
: The Snapchatter can tap on the question text and change it.Static
: The text cannot be modified by tapping.Static + Editable
: One line of the text (header) is static, and the others are editable.
Static
orEditable
Label: Text on the widget. If you want to break the line, add\n
to the text input.
The following inputs can be folded or unfolded by enabling the Advanced
checkbox.
-
Top Icon
: A non-interactable icon for visual purposes only.Hemisphere Color
- color of the hemisphere where theTop Icon
is located.
-
Corner Icon
: A tappable icon with the following options:Edit Question
: By tapping on this button, the Snapchatter can modify the question's text.Random Questions
: By tapping on this icon, a random question from theQuestions
list is selected.
-
Background Options
: You can set custom background's color or custom material. -
Question Text
: You can customize the text color of the question and header. To make the text invisible, adjust the color's opacity to 0. -
Reply Button
: If enabled, the widget will include a "Reply" button in the capture state. -
Reply Button Options
: You can adjust the button's color or material and change the button's text color. To see how the widget will look, enable thePreview
checkbox.
Previewing Your Lens
To preview your Lens in Snapchat, follow the Pairing to Snapchat guide.