From d7d30d2e665aa451f8bd3ea3c8b15391b765ccc3 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Wed, 02 Dec 2020 17:47:42 +0800 Subject: [PATCH] 修改新手引导 修改结算页面使用无限滚动 替换了json --- Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs b/Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs index 4b20713..d8b65ec 100644 --- a/Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs +++ b/Assets/Tools/EnhancedScroller v2/Plugins/EnhancedScroller.cs @@ -414,7 +414,7 @@ return _activeCellViewsStartIndex % NumberOfCells; } } - + /// <summary> /// This is the last data index showing in the scroller's visible area /// </summary> @@ -478,6 +478,10 @@ var go = Instantiate(cellPrefab.gameObject); cellView = go.GetComponent<EnhancedScrollerCellView>(); cellView.transform.SetParent(_container); + + RectTransform rt = go.GetComponent<RectTransform>(); + rt.anchoredPosition3D = new Vector3(rt.anchoredPosition3D.x, rt.anchoredPosition3D.y, 0); + rt.localEulerAngles = Vector3.zero; } return cellView; @@ -1407,6 +1411,7 @@ else go.AddComponent<HorizontalLayoutGroup>(); _container = go.GetComponent<RectTransform>(); + _container.localEulerAngles = Vector3.zero; // set the containers anchor and pivot if (scrollDirection == ScrollDirectionEnum.Vertical) @@ -1566,7 +1571,7 @@ _RefreshActive(); } - + /// <summary> /// This is fired by the tweener when the snap tween is completed /// </summary> -- Gitblit v1.9.1