diff --git a/Assets/FancyScrollView/Examples/Sources/09_LoadTexture/Cell.cs b/Assets/FancyScrollView/Examples/Sources/09_LoadTexture/Cell.cs index a8caa62..bee54af 100644 --- a/Assets/FancyScrollView/Examples/Sources/09_LoadTexture/Cell.cs +++ b/Assets/FancyScrollView/Examples/Sources/09_LoadTexture/Cell.cs @@ -21,13 +21,16 @@ public class Cell : FancyCell [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; }