Skip to content

Commit

Permalink
Bugfix 09_LoadTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
setchi committed Jan 14, 2020
1 parent 150df8d commit 4fb4fad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ public class Cell : FancyCell<ItemData>
[SerializeField] Image background = default;
[SerializeField] CanvasGroup canvasGroup = default;

ItemData data;

public override void UpdateContent(ItemData itemData)
{
data = itemData;
image.texture = null;

TextureLoader.Load(itemData.Url, result =>
{
if (image == null || result.Url != itemData.Url)
if (image == null || result.Url != data.Url)
{
return;
}
Expand Down

0 comments on commit 4fb4fad

Please sign in to comment.