mopsicus / uis Goto Github PK
View Code? Open in Web Editor NEWUnity infinite scroller (UIS) is an extension allows you to use the ScrollRect control as an infinite scroller/spinner
License: MIT License
Unity infinite scroller (UIS) is an extension allows you to use the ScrollRect control as an infinite scroller/spinner
License: MIT License
I need to spawn a title (TextMeshPro), 50 items, a new title, 50 new items and so on.
How can I achieve this?
I believe it's because Update call happens one time per frame and changes position only for +-1 and may happen situation when you wait about 30-40 frames before scroll complete updated items
Accordingly to my comment in #23
If we want to change scrollbar (exactly the bar, not by dragging scroll view) position too fast, there would be unpredictable behaviour: the component won't update views' positions. They will stuck outside content transform bounds. Nextly, if we would drag scroll view, but with much less velocity, views will change their positions little by little.
Currently I don't know how to beat this issue due to lack of the documentation and comments about how UpdateVertical and UpdateHorizontal methods work.
@mopsicus what do you think about it?
Hi
I would like to use scroll bar for infnite items in scroll view .i tried to use but unable to use scroll bar .Could you please help on it
It would be awesome if it could load items in a async way.
We need a callback for an item visible
It's not really one item, may be the height of item.
When my scroll list had 1 item, I tried to scroll up and it threw an exception at UpdateVertical ()
function:
float itemPosition = Mathf.Abs(_positions[_previousPosition]) + _heights[_previousPosition];
so I check the key in __positions
and return if the key not found. Is it ok? Or I miss something?
Any plans for support both width and height. Since now it only support if you make vertical it's only height and horizontal is only width
Hi, In your script is going forward like (0,1,2....). But I want to go both direction backward also. like (0,-1,-2,...). Where can add this thing in InfineScroll.cs. Thank you
How to initialize when list is empty ?
// error
_infiniteScroll.InitData(0);
When i launch Scroll.InitData(0);
to reset the list, i get some errors, How can I reste the list content? Thank you
Great project.
I need a function like pull-to-refresh and loadmore data function
Thanks in advance.
I use MoveToSide method to scroll to end position and if target is found i stopped scrolling.
but items spawned after scrolling.
i changed the SCROLL_SPEED, SCROLL_DURATION
but it did not work.
i mean OnFill is called at first few times,
and is not called even if scroll is moving.
is there a good way to autoscroll to target?
thanks!
I am using it to created Chat system and below is my requirements.
On a blank Unity (2018.2) project, I get a namespace error when I import this project.
Assets/infinite-scroll-unity-master/InfiniteScroll.cs(18,15): error CS0101: The namespace `Mopsicus.InfiniteScroll' already contains a definition for `InfiniteScroll'
Changing the namespace name fixes the error.
The list doesn't update when scrolling via Scroll Bar handle. What callback do you use to achieve the same?
Hey,
I like the script so far and would like to use it, but within the Demo and my own project, when I use the scroll wheel to scroll the list of items, no new items are loaded and hence displayed in the scrollview. It only works for dragging the view up and down but not when using the Mouse scroll wheel or dragging the scrollbar.
I tried to load 100 items but after Item 8, no new is added and I can only scroll blank space.
If further information is needed, just let me know.
Any plans for support multiple cells. Since would be nice to have more than one item next to eachother
I need revers scroll direction (Bottom to Top) = first element on Bottom, last on Top = it's hard to understand this solution for change anything=(
NullReferenceException: Object reference not set to an instance of an object
Mopsicus.InfiniteScroll.InfiniteScroll.CalcSizesPositionsVertical (System.Int32 count) (at Assets/Scripts/InfiniteScroll.cs:698)
what causes this error ?
OnHeight is defined in my script using the infinitescroll.cs
if (position < 0 || _previousPosition == position || _scroll.velocity.y == 0f) {
return;
}
_scroll.velocity.y == 0f
is this necessary ?
There is a flicker problem when using a canvas with
Scale with screen Size: x:1536/y:2730
Match: 1
Ref Pixel Per Unit: 100
Do you have a solution to remedy this problem?
Thank's !
Whenever i have image inside the cells. The images keep fidgeting, where the image keeps changing really fast between the intended image and the previous image.
Images are assigned inside coroutines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.