tinyantstudio / enhancedscrollview Goto Github PK
View Code? Open in Web Editor NEWCool 3d scoll view for Unity(NGUI 3D UGUI support)
Cool 3d scoll view for Unity(NGUI 3D UGUI support)
SetSiblingIndex() is not a good choice in uGUI. Look to my variant:
https://github.com/chromealex/Unity3D.UI.Windows.Core/blob/master/UI.Windows/Components/Default/Advanced/Carousel/CarouselComponent.cs
When I drag the uncentered card into the center. It triggered OnClickUGUIButton automatically. But I don't want to trigger this when I just drag over. Any suggestion?
因为最开始摆牌时(即EnhanceScrollView.cs的Start()),设置正中位置过于精确,会出现有SiblingIndex重复问题。
比如说:还是6张牌,最开始摆牌时,会出现一张牌在第6层,两张牌在第3层,一张牌在第1层,一张牌在第2层,一张牌在第0层。但在滑动牌组时,其实是每一张牌各占一层。
把EnhanceScrollView.cs中的Start()函数里这一句
curHorizontalValue = 0.5f - curCenterItem.CenterOffSet;
改成下面这句即可,这样正中位置就会有些偏差。
curHorizontalValue = 0.51f - curCenterItem.CenterOffSet;
(我没有NGUI,所以没有测试NGUI的例子。)
子对象有偶数个,比如4个或者6个,效果就不对了。
When I drag the card a very small distance on center left card ,the card change to the center but the changed center card is not become grey
比如我有50个需要显示的数据,但同时只能看到有限个比如3个或者5个这样。
那么就是让这3个或5个UI在移动的时候根据相应的数据进行正确刷新。否则像现在这样就会效果不对。
我们有个项目需要用到这个开源项目,所以麻烦你可不可以追加一个开源协议
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.