CREATE YOUR WORLD
Recording
ScreenShot
14min
using the screenshot function you can use the image related functions of zepetoworldcontent api to save or share images within the world, and post images to feed zepetoworldcontent api provides the following image related functions api description zepetoworldcontent savetocameraroll(rt unityengine rendertexture, result system action$1) saves the image to the photo library zepetoworldcontent savetocameraroll(texture unityengine texture2d, result system action$1) saves the image to the photo library zepetoworldcontent share(rt unityengine rendertexture, result system action$1) shares the image to an external app zepetoworldcontent share(texture unityengine texture2d, result system action$1) shares the image to an external app zepetoworldcontent createfeed(rt unityengine rendertexture, contents string, result system action$1) uploads the image to feed the content of the post can be specified through the second argument, contents world tags are automatically applied and posted to the feed zepetoworldcontent createfeed(texture unityengine texture2d, contents string, $result system action$1) uploads the image to feed the content of the post can be specified through the second argument, contents world tags are automatically applied and posted to the feed the following is an example of calling the image functions within the zepetoworldcontent zepetoworldcontent savetocameraroll(this rendertexture, (result boolean) => {console log(`save result ${result}`)}); zepetoworldcontent savetocameraroll(this texture2d, (result boolean) => {console log(`save result ${result}`)}); zepetoworldcontent share(this rendertexture, (result boolean) => {console log(`share result ${result}`)}); zepetoworldcontent share(this texture2d, (result boolean) => {console log(`share result ${result}`)}); zepetoworldcontent createfeed(this rendertexture, "\[content]", (result boolean) => {console log(`createfeed result ${result}`)}); zepetoworldcontent createfeed(this texture2d, "\[content]", (result boolean) => {console log(`createfeed result ${result}`)}); the following is the example code using the functions of the screenshot mode in zepetoworldcontent using rendertexture import { camera, rendertexture } from 'unityengine'; import { button, text } from 'unityengine ui'; import { spawninfo, zepetoplayers } from 'zepeto character controller'; import { zepetoscriptbehaviour } from 'zepeto script'; import { worldservice, zepetoworldcontent } from 'zepeto world'; export default class zepetoworldcontentexample extends zepetoscriptbehaviour { // zepetoworldcontent screenshot ui public camerarenderbutton button; public savetocamerarollbutton button; public sharebutton button; public createfeedbutton button; public logtext text; // render camera private camera camera; // render texture public rendertexture rendertexture; start() { zepetoplayers instance createplayerwithuserid(worldservice userid, new spawninfo(), true); zepetoplayers instance onaddedlocalplayer addlistener(() => { this camera = zepetoplayers instance localplayer zepetocamera camera; }); this camerarenderbutton onclick addlistener(() => { this camera targettexture = this rendertexture; this camera render(); this camera targettexture = null; }); this savetocamerarollbutton onclick addlistener(() => { zepetoworldcontent savetocameraroll(this rendertexture, (result boolean) => { this logtext text = `save result ${result}`; }); }); this sharebutton onclick addlistener(() => { zepetoworldcontent share(this rendertexture, (result boolean) => { this logtext text = `share result ${result}`; }); }); this createfeedbutton onclick addlistener(() => { zepetoworldcontent createfeed(this rendertexture, "\[content]", (result boolean) => { this logtext text = `createfeed result ${result}`; }); }); } } it cannot be checked in the unity editor mode, but can be checked when playing on the app screenshot the screenshot module is included in the build it unity plug in you can check the module script in github below 📘 build it unity plug in screenshot module link to github how to use the screenshot feature the screenshot feature is available by tapping the camera icon located on the right side of the build it unity plug in world play screen 1 selfie mode button you can switch the camera to selfie mode 2 photo button you can take a picture of the play screen 3 recording button you can record the play screen 4 exit button you can exit screenshot mode ✏️ note please note that chat speech balloons are not included in the screenshot taking photos press the photo button, and you will get a pop up window like the one above press the upload button to upload the screenshot directly to your zepeto feed photos are uploaded to your feed along with the default description text set in the screenshot prefab to change the default text, please refer to the screenshot docid\ x7vouuuj52 7xxqdcoaai guide click the edit button to modify the text of the post before uploading the screenshot to your feed 1 share button you can share your screenshot 2 download button you can save your screenshot to your device 3 exit button you can exit edit mode 4 preview window you can preview your screenshot 5 edit text you can modify the text that will be uploaded with your screenshot 6 upload button you can upload your screenshot and text to your zepeto feed recording videos press the video recording button to start recording the recording time will be displayed selfie mode when you tap the screenshot icon, the selfie mode icon will appear tap the icon to enter selfie mode in selfie mode, the character will look toward the camera if the camera moves beyond a certain angle, the character will turn back to face forward you can take photos or record videos while selfie mode is active tap the selfie mode icon again to exit selfie mode it will also be turned off automatically when you exit the screenshot feature how to change the default description text when you upload your screenshot through the upload button in the pop up window, it will be uploaded with the default text, '#zepetoworld #zepeto #bildy #world' the text in the description box that appears when you press the edit button is also the default text, '#zepetoworld #zepeto #bildy #world' to change the default description text, follow the steps below in the left hierarchy window, select managers > screenshot in the right inspector window, press the open button under the prefab field to open the screenshot prefab in the left hierarchy window, select screenshot > safearea > screenshot > previewpanel > previewtextfieldpanel > previewinputfield in the right inspector window, find the text field and change the text you can see from the example below that the text in the description box has changed i don't see the screenshot icon if you don't see the screenshot icon on the right side of the play screen as shown above, follow the steps below in the left hierarchy window, select managers > screenshot in the right inspector window, check the left checkbox