先看例子 This is a test 1. This is a test 2. This is a test 3. This is a test 4. This is a test 5. This is a test 1. 如果看完上一篇纵向滚动的朋友,就很容易理解横向滚动的实现方式了. 实现原理: 1. 利用CSS3的@keyframes规则创建动画效果: 2. 使用CSS3的animation效果完成滚动切换. @-webkit-keyframes scrollText2 { 0%{ -w
测试: 数据 & Item 的 Ctrl : using UnityEngine; public class ScrollViewItemData { public int index; public string name; public ScrollViewItemData(int index, string name) { this.index = index; this.name = name; } } public class ScrollViewItem : MonoBehavio