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;
 }