From 1b77aec2982b0b6c425866374a6f9f864b4838bf Mon Sep 17 00:00:00 2001 From: JieLing Date: Wed, 30 Dec 2020 14:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=E4=BF=AE=E5=A4=8Dscrollvi?= =?UTF-8?q?ew=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4=E5=BC=95=E5=AF=BC?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/View/ScrollCycleView.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua b/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua index ea046a27c3..d04529b2b5 100644 --- a/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua +++ b/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua @@ -388,7 +388,6 @@ function this:SetShow(showIndex) if not item.go then local go = newObject(self.item) - go.name = "item"..index go.transform:SetParent(self.dragGO.transform) go.transform.localScale = Vector3.one go.transform.localPosition = Vector3.zero @@ -404,6 +403,7 @@ function this:SetShow(showIndex) end if item.go then + item.go.name = "item"..index if self.dragType == 1 then item.tran.anchoredPosition = Vector2.New(self.itemWidth * (j-1), (0.5-i - self.dataLine) * self.itemHeight) else