public void ShareScreenshotWithText(string text) { string screenShotPath = Application.persistentDataPath + "/" + ScreenshotName; if (File.Exists(screenShotPath)) { File.Delete(screenShotPath); } menuObject.SetActive(false); optionsObject.SetActive(false); confirmButton.SetActive(false); shareButton.SetActive(false); titleObject.SetActive(false); screenshotTakenText.SetActive(false); #if UNITY_ANDROID ScreenshotManager.SaveScreenshot("avatar", "ContaGotas"); StartCoroutine(ShowText()); StartCoroutine(HideText()); #elif UNITY_IOS ScreenCapture.CaptureScreenshot(ScreenshotName); StartCoroutine(delayedShare(screenShotPath, text)); #endif }
public void SaveImage() { /* stickerBtn.SetActive(false); * save.SetActive(false); * removeImage.SetActive(false); * foreach (GameObject i in showHide) * { * i.SetActive(true); * } * * GameObject canvas = GameObject.Find("Canvas"); * foreach (var item in canvas.GetComponentsInChildren<Transform>()) * { * item.gameObject.SetActive(false); * }*/ stickerBtn.SetActive(false); save.SetActive(false); removeImage.SetActive(false); infoBtn.SetActive(false); foreach (var item in ObjectsToHide) { item.SetActive(false); } //ShowScreenShot(gameObject.GetComponent<Texture2D>()); // ScreenshotManager.SaveScreen(); ScreenshotManager.SaveScreenshot("I-Sticky", "I_Sticky", "jpeg", true); // Invoke("RemoveTakenImage", 0.1f); }
public void screenShotTake() { // Turns on the text that pops up when you take a picture if (photoTakenText.activeSelf == false) { photoTakenText.SetActive(true); } // Using the ScreenshotManager plugin we name and take a screenshot (It auto appends date/time at the end) var fileName = "cnrScreenshot"; ScreenshotManager.SaveScreenshot(fileName, "CNR"); // Old version may come in handy //var saveFilePath = Path.Combine(Application.persistentDataPath, DateTime.UtcNow.ToLongTimeString()); //if (File.Exists(saveFilePath)) //{s // Do nothing //} //else // Take a screenshot //{ //if (Application.platform == RuntimePlatform.IPhonePlayer) //Application.CaptureScreenshot(saveFilePath); //Application.CaptureScreenshot(fileName); //else //Application.CaptureScreenshot(saveFilePath); //} }
public void takescreenshot() { string Screen_Shot_File_Name = "Screenshot" + System.DateTime.Now.ToString("HH:MM:ss__yyyy-MM-dd") + ".png"; ScreenshotManager.SaveScreenshot(Screen_Shot_File_Name, "Area +"); captured.SetActive(true); Invoke("removeCapturedIcon", 2); }
// Token: 0x06000100 RID: 256 RVA: 0x00009304 File Offset: 0x00007704 public void OnSaveScreenshotPress() { ScreenshotManager.SaveScreenshot("MyScreenshot", "ScreenshotApp", "jpeg", default(Rect)); if (this.hideGUI) { this.ui.alpha = 0f; } }
public void OnSaveScreenshotPress() { ScreenshotManager.SaveScreenshot("MyScreenshot", "ScreenshotApp", "jpeg"); if (hideGUI) { ui.alpha = 0; } }
public void OnSaveScreenshotPress() { if (PlayerPrefs.GetString("Code") != "Paid") { PlayerPrefs.SetString("Code", "Played"); } Show(); ScreenshotManager.SaveScreenshot("Math", "AR Danik Maths", "png"); StartCoroutine(ShowHome()); }
public void TakeScreenshot() { Debug.Log("Capturing screenshot"); foreach (var item in DisableWhileCapturing) { item.alpha = 0; } var filename = "PrimeArt - " + DateTime.Now.ToString("HHmmss") + " - " + PaintingManager.Instance.CurrentPainting.Data.name; ScreenshotManager.SaveScreenshot(filename, "Prime Art", "jpeg"); }
/// <summary> /// 截图按钮 /// </summary> IEnumerator ShotBtnClick() { isShareVideo = false; ShowShotImage.texture = null; // EffectPanelUI.Instance.EffectPanelGo.gameObject.SetActive(false); uiCanvas.alpha = 0; RecordManager.Instance.ShowCanvas(false); // FingerTouchEL.Instance.targetGameObject = null; YiyouStaticDataManager.Instance.OnSilenceGameObject(0f); yield return(new WaitForSeconds(0.1f)); ScreenshotManager.SaveScreenshot("yiyou"); }
public void TakeScreenShot() { takingScreenshot = true; foreach (GameObject obj in m_UIOjects) { obj.SetActive(false); } foreach (GameObject objUI in iconsUI) { objUI.SetActive(false); } ScreenshotManager.SaveScreenshot("SeaWorld_Screenshot", "Sea World", "jpeg"); Invoke("TurnOnUI", 0.5f); }
protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.WhiteSmoke); spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend); switch (TileGrid.GameState) { case GameStates.Menu: menuManager.Draw(spriteBatch); bannerManager.Draw(spriteBatch, true); break; case GameStates.Lobby: menuManager.Draw(spriteBatch); networkingManager.Draw(spriteBatch); bannerManager.Draw(spriteBatch, true); break; case GameStates.QuitGame: menuManager.Draw(spriteBatch); tileManager.Draw(spriteBatch); TileGrid.Draw(spriteBatch); bannerManager.Draw(spriteBatch, false); animationManager.Draw(spriteBatch); break; case GameStates.Playing: tileManager.Draw(spriteBatch); TileGrid.Draw(spriteBatch); bannerManager.Draw(spriteBatch, false); animationManager.Draw(spriteBatch); break; } fpsMonitor.Draw(spriteBatch); spriteBatch.End(); if (screenshotManager.NewShot) { screenshotManager.SaveScreenshot(); } base.Draw(gameTime); }
public void ShotPic() { if (!isShooting) { isShooting = true; btnPanel.SetActive(false); shotclip.Play(); ScreenshotManager.SaveScreenshot("Scan"); CoroutineWrapper.EXES(1.5f, () => { showtoast("照片已保存"); CoroutineWrapper.EXES(1.5f, () => { isShooting = false; btnPanel.SetActive(true); }); }); } }
public void OnSaveScreenshotPress() { ScreenshotManager.SaveScreenshot("AGENDA_ScreenShot", "AGENDA", "jpeg"); if (hideGUI) { ui.alpha = 0; } if (hideGUI) { uiB.alpha = 0; } if (hideGUI) { uiC.alpha = 0; } if (hideGUI) { uiD.alpha = 0; } }
void OnClick() { string fileName = "Dreamviewer"; ScreenshotManager.SaveScreenshot(fileName, fileName); clickAudio.Play(); if (Application.platform == RuntimePlatform.Android) { showToastOnUiThread(" Saving image to gallery "); } // System.DateTime.UtcNow.ToString("HH:mm:ss dd MMMM, yyyy") // fileName = fileName + System.DateTime.UtcNow.ToString("-yyyy"); // fileName = fileName + System.DateTime.UtcNow.ToString("-MMMM"); // fileName = fileName + System.DateTime.UtcNow.ToString("-HHmmss"); // fileName = fileName + ".png"; // Debug.LogError(fileName); // print(Application.persistentDataPath); // ScreenCapture.CaptureScreenshot(fileName); }
public void TakeScreenShot() { if (!takingScreenshot) { _imageViewer.gameObject.SetActive(false); stickerBtn.SetActive(false); save.SetActive(false); removeImage.SetActive(false); infoBtn.SetActive(false); screenShotBtn.SetActive(false); cameSwapBtn.SetActive(false); animateBtn.SetActive(false); backBtn.SetActive(false); unfocusImage.SetActive(false); } ScreenshotManager.SaveScreenshot("I-Sticky", "I_Sticky", "jpeg"); takingScreenshot = true; //Hide UI }
public void ShotPic(GameObject obj) { if (!isShooting) { obj.SetActive(false); isShooting = true; // #if UNITY_ANDROID // string destination = "/sdcard/DCIM/AR游"; // //判断目录是否存在,不存在则会创建目录 // if (!Directory.Exists(destination)) // { // Directory.CreateDirectory(destination); // } // // path = destination + "/Panorama"+ GlobalInfo.ShotCount +".png"; // GlobalInfo.ShotCount++; // StartCoroutine(shot()); // // #elif UNITY_IOS || UNITY_IPHONE ScreenshotManager.SaveScreenshot("Panorama"); if (aud != null) { aud.Play(); } CoroutineWrapper.EXES(0.2f, () => { toastObj.SetActive(true); }); CoroutineWrapper.EXES(1.5f, () => { isShooting = false; toastObj.SetActive(false); obj.SetActive(true); }); // #endif } }
public void TakeScreenshot() { Debug.Log("take start"); ScreenshotManager.SaveScreenshot("AR", folderName, "jpg", area); }
public void OnSaveScreenshotPress() { ScreenshotManager.SaveScreenshot("Popapada_Photo", "Poparada", "jpeg"); // ScreenshotManager.SaveImage(texture, "MyImage", "png"); //if(hideGUI) ui.alpha = 0; }
public void OnSaveScreenshotPress() { ScreenshotManager.SaveScreenshot("MyScreenshot", "ScreenshotApp", "jpeg"); ui.alpha = 0; uilogo.alpha = 1; }
public void TakeScreenShot() { ScreenshotManager.SaveScreenshot("SeaWorld_Screenshot", "Sea World", "jpeg"); }