Code Monkey home page Code Monkey logo

unlimitedscrollui's Introduction

Unlimited Scroll UI

version 1.4.1

Summary

A plugin in Unity that let you easily create scroll views with unlimited items. See in asset store.

Quick Setup

Step 1: Add “UI/Scroll View” from Add GameObject menu.

Step 2: Add UnlimitedScroller with your desired auto layout type.

Step 3: Drag and drop the scroll view to Scroll Rect field. Set initial cell cache count.
If you use grid scroller, you can also change its alignment.

Step 4: Prepare a cell prefab that has the RegularCell script or your custom script that implements the ICell interface.

Step 5: To test it out immediately, add a ScrollerTest script below Unlimited Scroller, reference to your cell and set total count.

References

Please go to this website for full reference: https://brian-jiang.github.io/UnlimitedScrollUI/api/UnlimitedScrollUI.html

Supports

If you have any questions, please post here or comment here
Or email me directly at: [email protected]
Thank you for your support!

unlimitedscrollui's People

Contributors

brian-jiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

unlimitedscrollui's Issues

Implement Regenerate .

Hey. I got this off UPM. Great work, solved the problems I was having with Infinite Scroll.

My use case is that I want to keep things visible and untouched until a rolling animation goes through all items in the list ( live leaderboard ) when new data is available and update each one individually with some stagger in the timing.

I can kinda do this by keeping old data in memory and having a special case to insta-update it, however a regenerate method that would package all this into the Scroller itself would be very helpful.

Would you be open to a pull request to add this?

ICell.OnGenerated不仅处理初始化逻辑,还处理复用逻辑?

因为Cell可以复用,对于数据绑定都在ICell.OnGenerated时发生。

能否将 OnGenerate 分为
OnCreate
OnBind
两个阶段(此处方法命名只是参考于Android)

这样所有 cell 一致的数据初始化处理放在 OnCreate
不一致的数据放在 OnBind 中

【脚本缺失】Ver.1.5.0 ?

image

我更新到1.5.0后,抛了空指针。

然后我尝试看一下Demo是怎么处理的,发现Demo有点问题,如图。

我新建了一个新的项目,导入 1.5.0。此问题仍存在。

Unable to add items to existing Scroll

I had a use case where I wanted to use the scroll for a text log. As the app is running new text would be added to the log and as such the totalCount would increase.

You can't call Generate a second time so you can't update the totalCount.

In the VerticalUnlimitedScroller, RowCount doesn't have a setter and totalCount is only initialized from Generate.

Is there a way to grow the number of items in a scroll over time as I want to? Otherwise what would a solution be? I start at 1 log entry but expect to grow to tens of thousands over the course of the app's lifecycle.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.