public class testwriter : MonoBehaviour { // Use this for initialization void Start () { } [MenuItem("Testx/test")] static void test() { //不正确写法: var writer = new StreamWriter(File.Create("Assets/test")); writer.Write(); writer.Flush()
简单滚动用ScrollView和 HorizontalScrollView就够.自定义view时可能要自定义滚动效果,可以使用 Scroller或 OverScroller Animating a Scroll Gesture In Android, scrolling is typically achieved by using the ScrollView class. Any standard layout that might extend beyond the bounds of it