资源简介

Unity 无限滑动列表插件,Item循环使用,优化滑动列表。 EnhancedScroller v2

资源截图

代码片段和文件信息

using UnityEngine;
using UnityEngine.UI;
using EnhancedUI.EnhancedScroller;

namespace EnhancedScrollerDemos.SuperSimpleDemo
{
    /// 
    /// This is the view of our cell which handles how the cell looks.
    /// 

    public class CellView : EnhancedScrollerCellView
    {
        /// 
        /// A reference to the UI Text element to display the cell data
        /// 

        public Text someTextText;

        /// 
        /// This function just takes the Demo data and displays it
        /// 

        /// 
        public void SetData(Data data)
        {
            // update the UI text with the cell data
            someTextText.text = data.someText;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-12-13 20:50  Demos\
     目录           0  2016-12-13 20:50  Demos\01 Simple Demo\
     文件       49272  2016-10-22 08:42  Demos\01 Simple Demo\01.unity
     文件         294  2016-10-22 08:42  Demos\01 Simple Demo\01.unity.meta
     文件         767  2016-10-22 08:42  Demos\01 Simple Demo\CellView.cs
     文件         382  2016-10-22 08:42  Demos\01 Simple Demo\CellView.cs.meta
     文件       11808  2016-10-22 08:42  Demos\01 Simple Demo\CellView.prefab
     文件         299  2016-10-22 08:42  Demos\01 Simple Demo\CellView.prefab.meta
     文件         224  2016-10-22 08:42  Demos\01 Simple Demo\Data.cs
     文件         382  2016-10-22 08:42  Demos\01 Simple Demo\Data.cs.meta
     文件        6478  2016-10-22 08:42  Demos\01 Simple Demo\SimpleDemo.cs
     文件         382  2016-10-22 08:42  Demos\01 Simple Demo\SimpleDemo.cs.meta
     文件         311  2016-10-22 08:42  Demos\01 Simple Demo.meta
     目录           0  2016-12-13 20:50  Demos\02 Multiple Cell Types\
     文件       46032  2016-10-22 08:42  Demos\02 Multiple Cell Types\02.unity
     文件         294  2016-10-22 08:42  Demos\02 Multiple Cell Types\02.unity.meta
     文件         866  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellView.cs
     文件         382  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellView.cs.meta
     文件         410  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewFooter.cs
     文件         382  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewFooter.cs.meta
     文件        8404  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewFooter.prefab
     文件         299  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewFooter.prefab.meta
     文件        1451  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewHeader.cs
     文件         382  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewHeader.cs.meta
     文件       11572  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewHeader.prefab
     文件         299  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewHeader.prefab.meta
     文件        1921  2016-10-22 11:47  Demos\02 Multiple Cell Types\CellViewRow.cs
     文件         382  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewRow.cs.meta
     文件       21340  2016-10-22 11:48  Demos\02 Multiple Cell Types\CellViewRow.prefab
     文件         299  2016-10-22 08:42  Demos\02 Multiple Cell Types\CellViewRow.prefab.meta
     文件        1392  2016-10-22 08:42  Demos\02 Multiple Cell Types\Data.cs
............此处省略249个文件信息

评论

共有 条评论