private void RenderImage(UnityGoogleDrive.Data.TextureFile textureFile) { var texture = textureFile.Texture; var rect = new Rect(0, 0, texture.width, texture.height); SpriteRenderer.sprite = Sprite.Create(texture, rect, Vector2.one * .5f); }
void RenderImage(UnityGoogleDrive.Data.TextureFile texFile) { Image img = Instantiate(defaultImg, layoutParent); img.sprite = Sprite.Create(texFile.Texture, new Rect(0, 0, texFile.Texture.width, texFile.Texture.height), Vector2.one * 0.5f); }
// Render texture from Google Drive private void RenderImage(UnityGoogleDrive.Data.TextureFile textureFile) { vrPicture = textureFile.Texture; vrPicture.name = tempName; isDownloadind = 2; }
private void RenderImage(UnityGoogleDrive.Data.TextureFile textureFile) { img.sprite = Sprite.Create(textureFile.Texture, new Rect(0f, 0f, textureFile.Texture.width, textureFile.Texture.height), Vector2.one * .5f); }
void ImageRequested(UnityGoogleDrive.Data.TextureFile textureFile) { requestDone = true; tex = textureFile.Texture; }