Learn how to add Stickers, Caption Text & Links to the content being shared
For any sharing content (image/video/live camera), you can add three kinds of extra data.
Stickers
Stickers allow to show additional content to attribute the existing sharing content.Only one sticker is allowed.A still sticker must be a PNG 1MB or smaller.An animated sticker must be a GIF or WebP (preferred) 1MB or smaller.
Caption Text
This is the caption given to the sharing content once after sharing.Captions are limited to 250 characters.
Attachment URL
URL that can be attached to the sharing content. Usually, you can link your game or attach a deep link to your game content.The attachment URL must be a properly formatted URL in string format.
Add Sticker
Create Sticker
Create SnapchatSticker Instance and set its properties. Properties include position of sticker, rotation and size in pixels.
privateSnapchatStickerCreateSticker(){SnapchatSticker sticker =null; sticker =newSnapchatSticker(Application.persistentDataPath+"/"+ SharingStickerName); // Set Position in normalised screen coordinatessticker.SetPosition(0.5f,0.5f); // Set rotation in degreessticker.SetRotation(-45f); // Set size for the sticker in pixelssticker.SetSize(Screen.width*0.3f,Screen.height*0.3f);return sticker;}
Set Sticker to content
Set SnapchatSticker instance created above to SnapchatContent Instance.
This is the message displayed over the sharing content (Image/Video/LiveCamera). Pass the text to SnapchatContent instance.
content.SetCaptionText("My awesome game!");
Add Attachment Url
Pass url which can be opened once the user shares on snapchat. Usually this can be the url of your game so the snapchat users can find it on app store.