11000+款5星资源
8.5万+用户参与评分
10万+社区成员鼎力支持
每款资源都经过 Unity 审核
显示 1 - 10 of 16
用户评论
排序
j
Easy to install
5 years ago
jonatanjumbert基于版本1.4
works as expected, easy to install. Great job
这条评论是否有帮助?
0
0
k
All you need... Almost
6 years ago
koala_overmind基于版本1.4
Works great. Really easy to implement and understand.
Personally i found really dissapointing a lack of grid scroll logic. That's why this review is not 5 stars
这条评论是否有帮助?
1
1
s
Works great!
7 years ago
silverlaine基于版本1.4
Thank you for the asset, it works great.
I do have some suggestions though. Right now, to configure the item in scrollview, I have to inject my datasource directly into it, and call configure method on it, instead of having a configure callback on the scrollview itself. This might give you a better idea of what I'd want https://developer.apple.com/documentation/uikit/uitableviewdatasource
The ideal situation is that item doesn't know anything about datasource and just exposes it's properties/methods to configure itself.
If you'd wanna take it even step further, an array input on the scrollview would be nice, so that people can directly bind to it with UniRx.
I also noticed that the scrollview always creates the maximum number of items it can fit, regardless of the "totalItemCount". It's not a big deal, but something to keep in mind.
这条评论是否有帮助?
0
0
Besides the goodies, I found on small problem. ScrollToIndex works on examples (example3) but if the viewport is expanded, the value assigned as content height is beyond range. You will notice a flicker.
nternal void scrollToTheIndex(int _itemIndex)
{
if(_itemIndex >= totalItemCount)
{
Debug.Log("Index not found -> " + _itemIndex);
return;
}
float _contentHeight = this.contentSize;
float _viewportHeight = this.viewportRect.rect.height;
float _range = _contentHeight - _viewportHeight;
//Debug.Log("Unfiltered Range -> " + _range);
_range = Mathf.Clamp(_range,0, _contentHeight);
_itemIndex++;
float _normalizedValue = (float)_itemIndex / totalItemCount;//Mathf.Clamp(, 0f, 1f);
float _position = Mathf.Lerp(0, _range, _normalizedValue);
//Debug.Log("Range -> " + _range + " | Nor value -> " + _normalizedValue + " | Pos -> " +_position);
this.contentAnchoredPosition = -_position;
refresh();
}
这条评论是否有帮助?
1
0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持