LoopScrollRect
LoopScrollRect copied to clipboard
These scripts will make your UGUI ScrollRect reusing cells, to improve performance, loading time and draw calls.
https://user-images.githubusercontent.com/38003448/175812359-f30717dc-d124-4530-b6e6-d0f04e673258.mov Hi I Used loop horizontal scroll rect Switching from Game View to Scene View causes problems.
I Just Want To Ignore Some Element For Pooling - Reusing In Scroll Content & Also Want To Use One Prefab To Pooling - Reusing In Same Scroll Content For...
需求是打开界面的时候,不带动画地定位到对应index的Item. 看了接口说明,想着用RefillCells(index) 传入index来实现,但遇到以下问题: 1、当m_Content底下列表为空时,第一次调用RefillCells(index)并不会定位到index. 所以我试着连续调用两次RefillCells(index)来解决这个问题。 2、RefillCells(index) 无法定位到最后一个元素。得利用SrollToCellWithinTime(index, 0.01f)来实现定位到最后一个元素, 但是因为时间不为0, 所以还是不能实现我想的不带动画来定位到目标位置。 目前我自己的方案是在屏幕外定位到目标以后,再移回屏幕内。但还是觉得这个方案很不理想,希望官方大大处理下。修复下RefillCells() 接口问题。 以上测试是在我总元素是9个,两列4行,一个屏幕能显示三行的情况下出现的。 第一个问题是我想定位到index=7也就是第三行的情况下出现的。调用两次RefillCells(index) 能定位到第三行。但是我想定位到最后一行也就是index=8的时候就不行了,也就是我的第二个问题。
Could you please explain if it is possible to put infinity loop for multi prefabs? In the normal version, it is enough to set totalCount = -1, but this does...
I want to display feed with thumbnails that are loaded from internet. Since feed has no particular limit, I want to use LoopScrollRect. But when I'm waiting for upcomming data...
你好, 請問有 SrollToCell 跟 SrollToCellWithinTime 移動完成的判斷方法嗎? 1.我原本的寫法是用 yield return 去等 GetFirstItem() 回傳是否為已經移動到指定的Index 但是剛剛測試會一直卡在無法成立所以無法往下執行 2.然後 我想要進去 GetFirstItem() 看程式碼是哪邊判斷有問題 結果發現 我用 OpenUPM 安裝插件的方式,底層程式碼會有看不到原始碼的問題 不知道跟 LoopScrollRect.Runtime.asmdef 這個有沒有關係? 我的程式碼大概是這樣 int FindIndex = 1; m_InitOnStart.m_LoopScrollRect.SrollToCellWithinTime(FindIndex,...
你好, 我遇到一個問題 當 Rect Transform 都設為 stretch 時,沒有自動呼叫 ReturnToTempPool 來回收 ScrollCell 的問題 所以會產生所有塞入資料數量的 ScrollCell ,然後全部都是顯示的狀態而沒有回收到 Pool 中 然後之後手動滑動後就"有機會"會正常了 只是在我自己的專案,手動滑動後還是會維持在有問題的狀態 然後似乎在某個數值更新後,就會自動去呼叫 ReturnToTempPool 但不知道為什麼會有畫面應該顯示5個,但只顯示4個,少1個的狀況 問題大概是這樣:  原先預期的處理結果:  遇到問題的結果:  能夠重現的範例場景 [DemoScene_MultiCellFullScreen.zip](https://github.com/qiankanglai/LoopScrollRect/files/8519843/DemoScene_MultiCellFullScreen.zip)