Image Picker Texture
The Image Picker Texture resource allows you to get an image from your device's camera roll and use it as a texture.
As long as the Image Picker texture is being used in the scene, Snapchat can show an interface allowing the user to pick from their camera roll. If you want a texture from the device's camera roll centered on a face, refer to the Face Image Picker Texture guide.
Create the Image Picker Texture
To create an Image Picker Texture resource, select
+ -> From Image Picker in the
This will create a texture that you can now utilize like any other texture resource. It can be applied to a material texture field, added to an Image or Screen Image and more.
Displaying the Image Picker
With the Image Picker Texture being used in the Lens, you can then show the Image Picker UI for the user to choose their image in Snapchat.
You can automatically do this by selecting the Image Picker asset in the Resources panel, and enable
Show on Start.
Alternatively, you can use a script to pull the UI. Take a look at the API page for more information.
Preview Image Picker
You can preview this functionality within Lens Studio by enabling the
Show Snapchat UI button in the bottom left corner of the
Preview panel. When enabled, you'll see the same image picker interface used in Snapchat pre-filled with example photos.
Still Looking for help?Visit Support