Comments (2)
@Liang2527
Sorry for my late reply.
Do not destroy cells directly as they are managed by FancyScrollView.
Basically, it updates the data rather than deleting the cell itself.
https://github.com/setchi/FancyScrollView/blob/master/Assets/FancyScrollView/Examples/Sources/02_FocusOn/ScrollView.cs#L48
If you really need to destroy the cell, instead of deleting the cell directly, prepare your own container inside the cell and delete it.
The scroll position can be updated with scroller.ScrollTo();
https://github.com/setchi/FancyScrollView/blob/master/Assets/FancyScrollView/Examples/Sources/02_FocusOn/ScrollView.cs#L75
from fancyscrollview.
@Liang2527
Sorry for my late reply.Do not destroy cells directly as they are managed by FancyScrollView.
Basically, it updates the data rather than deleting the cell itself.
https://github.com/setchi/FancyScrollView/blob/master/Assets/FancyScrollView/Examples/Sources/02_FocusOn/ScrollView.cs#L48If you really need to destroy the cell, instead of deleting the cell directly, prepare your own container inside the cell and delete it.
The scroll position can be updated with scroller.ScrollTo();
https://github.com/setchi/FancyScrollView/blob/master/Assets/FancyScrollView/Examples/Sources/02_FocusOn/ScrollView.cs#L75
Thanks
from fancyscrollview.
Related Issues (20)
- How to use mouse to scroll? HOT 10
- Sir,Is it support to use for 3D models scroll HOT 2
- 滑动实时选中如何实现
- RFC: port package.json, license file back to master branch HOT 3
- Please include changelogs with each release HOT 1
- You should support expand/collapse item in fancy scrollview HOT 1
- drag out of window may cause the animation jump
- Dublicate snap settings in Scroller inspector HOT 1
- Version mismatched HOT 1
- PaddingTop doesn't work when the scrollview is initialized HOT 1
- スクロールできない場合padding headが効かない HOT 3
- Add support for Vertical Scroll Rect to scroll from bottom to top HOT 1
- Please add assembly definition HOT 2
- Is there a way to support snap funciton for FancyScrollRect component? HOT 2
- ScrollView not supported difference cellSize
- How can i change cells number?
- give some explanation about how get first index and position? HOT 1
- Is there any way not to reuse cells?
- テリマーキ割引ランディ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fancyscrollview.