摘要: 使用Unity NGUI-InputField组件输入时发现显示为白色就是看不到字体,查找一下发现是与android交互存在的问题, 只需在ANdroidManifest.XML中Application位置下加上:android:theme="@android:style/Theme.Holo.Light.DarkActionBar"即可。 阅读全文
posted @ 2017-12-04 15:48 IT_yanghui 阅读(2254) 评论(0) 推荐(0) 编辑
摘要: 简单的小球沿贝塞尔曲线运动(适合场景漫游使用) 阅读全文
posted @ 2017-11-22 15:37 IT_yanghui 阅读(11520) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-01 16:37 IT_yanghui 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 摘自:(博主 http://www.cnblogs.com/softimagewht/p/4149118.html) //skeletonDataSkeletonAnimation skeletonAnimation = GetComponent<SkeletonAnimation>();Debug 阅读全文
posted @ 2017-10-18 13:36 IT_yanghui 阅读(904) 评论(0) 推荐(0) 编辑
摘要: NGUI制作可滚动的文本框 1.首先创建一个UI Root 2.选择UI Root右键 Create 选择Scoll View创建。 3.Scroll view的大小是可以调节的,调节为你需要的适当大小 4. 5.创建一个Label作为Scroll View的子物体,使其宽与Scoll view相同 阅读全文
posted @ 2017-08-18 14:06 IT_yanghui 阅读(934) 评论(0) 推荐(0) 编辑
摘要: void Update() { if (Input.touchCount > 0)//手指数量 { if(Input.GetTouch(0).phase == TouchPhase.Began && Input.GetTouch(0).tapCount == 2)//Input.GetTouch(0 阅读全文
posted @ 2017-08-11 13:15 IT_yanghui 阅读(795) 评论(0) 推荐(0) 编辑
摘要: void OnGUI()//实现鼠标双击 { Event Mouse = Event.current; if (Mouse.isMouse && Mouse.type == EventType.MouseDown && Mouse.clickCount == 2) { print("Double C 阅读全文
posted @ 2017-08-11 12:02 IT_yanghui 阅读(393) 评论(1) 推荐(0) 编辑
摘要: MVC的具体含义是:model+view+controller,即模型+视图+控制它们各自处理自己的任务: (1)模型(model):模型持有所有的数据、状态和程序逻辑。模型独立于视图和控制器。(2)视图(view):用来呈现模型。视图通常直接从模型中取得它需要显示的状态与数据。对于相同的信息可以有 阅读全文
posted @ 2017-08-10 11:12 IT_yanghui 阅读(146) 评论(0) 推荐(0) 编辑