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);
    }
Пример #2
0
    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);
    }
Пример #3
0
 // Render texture from Google Drive
 private void RenderImage(UnityGoogleDrive.Data.TextureFile textureFile)
 {
     vrPicture      = textureFile.Texture;
     vrPicture.name = tempName;
     isDownloadind  = 2;
 }
Пример #4
0
 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);
 }
Пример #5
0
 void ImageRequested(UnityGoogleDrive.Data.TextureFile textureFile)
 {
     requestDone = true;
     tex         = textureFile.Texture;
 }