

accessed regardless of the Module that may be on the operators screen. You can share a text-only message using the ShareText method. The Crime Analysis Module facilitates drill down searches and Mug Shot. ShareTexture2D (sampleTexture, "screenshot", "This is a sample message" ) Share a Text Share a Texture2D // sampleTexture is a Texture2D object captured some time before // This method saves the texture as a PNG image named "screenshot.png" in persistentDataPath, // then shares it with a sample message and an empty subject Internally, this method will also create a PNG image from the Texture2D, save it to the persistentDataPath, and finally share that image. You can also share a Texture2D object obtained some point before the sharing time. ShareImage (path, "This is a sample message" ) Share a Texture2D persistentDataPath, "screenshot.png" ) // Share the image with the path, a sample message and an empty subject Share a saved image // Suppose we have a "screenshot.png" image stored in the persistentDataPath, // we'll construct its path first string path = System. You can share a saved image by specifying its path.

sharing messages must be written by the user. You can also attach a message to be shared with the image.ĭue to Facebook policy, pre-filled messages will be ignored when sharing to this network, i.e. To share an image you also have a few options. Note that screenshot capturing should be done at the end of the frame. Coroutine that captures and saves a screenshot IEnumerator SaveScreenshot ( ) Therefore you should call it within a coroutine after WaitForEndOfFrame(). Note that this method, as well as other screenshot capturing methods, needs to be called at the end of a frame (when the rendering has done) for it to produce a proper image. This screenshot will be saved as a PNG image in the directory pointed by Application.persistentDataPath. To capture and save a screenshot of the whole device screen, simply specify the file name to be saved. To capture the device's screenshot, you have a few options. You can access the Sharing module API via the Sharing class under the EasyMobile namespace. This section provides a guide to work with Sharing module scripting API.
