分享您的推广链接,轻松获得分享积分,让更多人都分享

推广链接格式:http://www.idoubi.net?mref=您的账户名

Unity3D 已经优化的滚动视图 Optimized ScrollView Adapter (ListView, GridView)

Optimized ScrollView Adapter (ListView, GridView)

Display tons of data efficiently through a list or grid, horizontally or vertically. Examples are chat systems, leaderboards, galleries, inventories, view pagers, spinners, drag-and-drop workflows, hierarchies, date/time pickers, virtually anything involving a list/grid.
Highly customizable uGUI ScrollViews can be created, or existing ScrollRects can be converted. OSA doesn’t depend on Unity’s ScrollRect, but supersedes it in functionality, so you get everything you’re already familiar with, plus extra.

In order to use the entire feature-set, please check the coding part in the quick-start video linked below and make sure you’re comfortable with it, as it may appear difficult for some beginners that are not yet familiar with stuff like class inheritance . Not required for Playmaker users, since the features available to them (see below) don’t require coding

Start by creating a functional Optimized ScrollView Adapter from scratch, using the provided wizard window which generates a ScrollView from scratch in editor, a scrollbar and an OSA implementation based on 2 available templates, List or Grid, and continue building up using the manual and the 15 demo scenes as a guide.

Features:
– platform-independent
– can handle 2 billion items (int.MaxValue-1)
– variable data set
– items can have different heights/widths
– support for Content Size Fitter for items with unknown size at init time
– GridView with fixed or auto-adaptable number rows/columns
– vertical/horizontal orientation and optional spacing/padding
– rotating/scaling the ScrollView (making it compatible with CanvasScaler)
– no objects are destroyed (unless the number of items in the dataset changes), so GC calls are at minimum
– fully configurable snapping behavior
– auto-adapting to changes in viewport’s size
– multiple item types + example scene
– change item size in real time (ex. animations), even if it’s not visible
– optionally looping items (ex. spinners)
– ScrollTo specific item with fine position adjusting & SmoothScrollTo with adjustable duration for the animation + a callback can be provided for receiving updates for each animation step and the possibility of canceling it
– fully extensible & documented source code provided
– partially customizable recycling policy through provided callbacks
– enhanced scrollbar functionalities via ScrollbarFixer, which adds auto-hide/hide-when-not-needed animations (can also be used as a standalone component on a regular ScrollRect, case in which it solves this Unity bug)
– dragging the items within the list(re-ordering), between 2 lists (transferring) or outside (orphaning – setting aside to drag later into a list). Example scene provided

Utilities & other info:
– LazyList data structure optimized for large amounts of data
– optional content background scrolling effect, with optional parallax effect (adjustable)
– optional gallery effect (middle items bigger than side items, or custom)
– Nested ScrollViews are supported out of the box (disabled by default, for performance), including nesting a regular ScrollRect as parent/child
– simple Expandonclick utility script in the example scenes that can be used to expand/shrink items on click
– pulling effect when the content is dragged outside bounds
– Supports all Canvas spaces
– Pull To Refresh utility script + example scene
– DateTime picker pop-up utility which can be used from anywhere (one line of code)
– SimpleImageDownloader utlity with basic queue management to decrease overall bandwidth usage (no caching though)
– active development with much more features to come (such as a code-free workflow for common scenarios and PlayMaker integration)
– email support with free change requests and hot-fixes

Playmaker support:
At least Unity 2017.1 needed
Lists, grids, date-time picker, content size fitter(items of variable sizes), large data sets.
The demo scenes included do not have Playmaker-counterparts, though this may change in the future. Please watch the tutorial to see how to create Playmaker-ready OSAs through the OSA wizard instead

More Info: _https://assetstore.unity.com/packages/tools/gui/optimized-scrollview-adapter-listview-gridview-68436

[mycred_sell_this]

[/mycred_sell_this]

更多推荐