private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if(result.IsSucceeded) { image.renderer.material.mainTexture = result.image; } }
private void OnImage(AndroidImagePickResult result) { if (result.IsSucceeded) { _avatarImage.texture = result.Image; GameSparksManager.Instance.UploadAvatar(result.Image); } }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { image.GetComponent <Renderer>().material.mainTexture = result.image; } AndroidCamera.instance.OnImagePicked -= OnImagePicked; }
void OnAndroidImagePicked(AndroidImagePickResult obj) { UM_ImagePickResult result = new UM_ImagePickResult(obj.image); if (OnImagePicked != null) { OnImagePicked(result); } dispatch(IMAGE_PICKED, result); }
private void OnImagePicked(AndroidImagePickResult result) { if (result.IsSucceeded) { //photoTexture = result.Image; applePhoto(result.Image); } else { AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed"); } }
private void OnImagePickedEvent(string data) { Debug.Log("OnImagePickedEvent"); string[] storeData; storeData = data.Split(AndroidNative.DATA_SPLITTER [0]); string codeString = storeData[0]; string ImagePathInfo = storeData[1]; string ImageData = storeData[2]; AndroidImagePickResult result = new AndroidImagePickResult(codeString, ImageData, ImagePathInfo); OnImagePicked(result); }
private void OnImagePickedEvent(string data) { Debug.Log("OnImagePickedEvent"); string[] storeData; storeData = data.Split(AndroidNative.DATA_SPLITTER [0]); AndroidImagePickResult result = new AndroidImagePickResult(storeData[0], storeData[1]); dispatch(IMAGE_PICKED, result); if (OnImagePicked != null) { OnImagePicked(result); } }
private void OnImage(AndroidImagePickResult result) { if (result.IsSucceeded) { if (target.mainTexture != initialTexture) { DestroyImmediate(target.mainTexture, true); } target.mainTexture = result.image; next.isEnabled = true; } isTaking = false; AndroidCamera.instance.OnImagePicked -= OnImage; }
private void OnImagePicked(AndroidImagePickResult result) { AndroidCamera.Instance.OnImagePicked -= OnImagePicked; if (result.IsSucceeded) { AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); pickedImage.GetComponent <Image> ().sprite = result.Image.ToSprite(); } else { AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed"); } }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); image.GetComponent <Renderer> ().material.mainTexture = result.Image; } else { AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed"); } AndroidCamera.Instance.OnImagePicked -= OnImagePicked; }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); Sprite sprite = Sprite.Create(result.Image, new Rect(0.0f, 0.0f, result.Image.width, result.Image.height), new Vector2(0.5f, 0.5f)); image.sprite = sprite; } else { AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed"); } AndroidCamera.Instance.OnImagePicked -= OnImagePicked; }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { //AN_PoupsProxy.showMessage ("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); //image.GetComponent<Renderer> ().material.mainTexture = result.Image; photoTexture = result.Image; avatar.mainTexture = result.Image; take_photo_btn.SetActive(false); startPlayVideo(); startCheckPhoto(); //StartCoroutine ("checkPhotoVisible"); } else { //AN_PoupsProxy.showMessage ("Image Pick Rsult", "Failed"); } AndroidCamera.Instance.OnImagePicked -= OnImagePicked; }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { // AN_PoupsProxy.showMessage("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); Common.DebugPopUp("CameraMaster fun OnImagePicked", "Succeeded, path: " + result.ImagePath); // Common.infoGUI.SetImage(result.Image);//.GetComponent<Renderer>().material.mainTexture = result.Image; Common.playerInformation.SetMyImage(result.Image); path = result.ImagePath; Common.playerInformation.LocalImagePicked(path); } else { Common.DebugPopUp("CameraMaster fun OnImagePicked", "Image pick result failed"); // AN_PoupsProxy.showMessage("Image Pick Rsult", "Failed"); } AndroidCamera.Instance.OnImagePicked -= OnImagePicked; }
private void OnImagePicked(AndroidImagePickResult result) { Debug.Log("OnImagePicked"); if (result.IsSucceeded) { AN_PoupsProxy.showMessage ("Image Pick Rsult", "Succeeded, path: " + result.ImagePath); image.GetComponent<Renderer> ().material.mainTexture = result.Image; } else { AN_PoupsProxy.showMessage ("Image Pick Rsult", "Failed"); } AndroidCamera.instance.OnImagePicked -= OnImagePicked; }
void OnAndroidImagePicked(AndroidImagePickResult obj) { UM_ImagePickResult result = new UM_ImagePickResult(obj.Image); OnImagePicked(result); }