摘要: https://zhuanlan.zhihu.com/p/27438946 1、优化UGUI的ScrollRect: http://qiankanglai.me/2015/08/15/LoopScrollRect/ http://blog.csdn.net/dingxiaowei2013/artic 阅读全文
posted @ 2017-09-27 09:04 CocomoNo1 阅读(169) 评论(0) 推荐(0) 编辑
摘要: [添加脚本(Move)] //该脚本挂在img的父物体上 using UnityEngine;using System.Collections;using UnityEngine.UI; //定义枚举 public enum Tools{ 空, 塞尺} public class Move : Mon 阅读全文
posted @ 2016-07-01 12:56 CocomoNo1 阅读(377) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; public class MoveTarget : MonoBehaviour { public GameObject _target1;//左侧目标位置 public GameObject _target2;//右侧目标位置 bool _check = true; boo... 阅读全文
posted @ 2017-07-17 16:35 CocomoNo1 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: transform.position = Vector3.Lerp(start.transform.position, end.transform.position, Mathf.SmoothStep(0f, 1f, Mathf.PingPong(Time.time / 3f, 1f))); 阅读全文
posted @ 2017-07-13 15:15 CocomoNo1 阅读(149) 评论(0) 推荐(0) 编辑
摘要: using System.Runtime.InteropServices; using UnityEngine; using System.Collections; using Assets; public class PlayVideo : MonoBehaviour { public string url; public MovieTexture movieTexture;... 阅读全文
posted @ 2017-06-30 09:12 CocomoNo1 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; [AddComponentMenu("UI/Effects/Gradient")] public class Gradient : BaseVertexEffect { [Seriali... 阅读全文
posted @ 2017-06-28 08:41 CocomoNo1 阅读(526) 评论(0) 推荐(0) 编辑
摘要: ///模型从不透明变成透明直至消失 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TestClass : MonoBehaviour { private float tempTime; public... 阅读全文
posted @ 2017-06-28 08:38 CocomoNo1 阅读(417) 评论(0) 推荐(0) 编辑
摘要: ///切割动画播放,动画中的每部分都挂载此脚本 阅读全文
posted @ 2017-06-20 10:46 CocomoNo1 阅读(312) 评论(0) 推荐(0) 编辑
摘要: public GameObject InstanceGameobject(string _path, Transform _parent) { GameObject obj = Resources.Load(_path, typeof(GameObject)) as GameObject; GameObject go = Instantiate(obj)... 阅读全文
posted @ 2017-06-15 10:45 CocomoNo1 阅读(211) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagement; using System.Diagnostics; /// /// 脚本挂载在button上 /// 跨场景,单击按钮跳转主场景,此时控制端调用虚拟端。 //... 阅读全文
posted @ 2017-05-17 16:49 CocomoNo1 阅读(228) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using UnityEngine.UI; using System; /// /// 在输入框输入数字,在现实文本中数值动态增加,可多次输入 /// InputFiled中输入数值,text动态显示数值,当输入数值>text中数值,text中的数值动态递增;反之,动态递减。 /// public c... 阅读全文
posted @ 2017-05-16 16:08 CocomoNo1 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 1:虚拟端发布出来要带着配置文件。 2:控制端也应该带着配置文件,将虚拟端整体放入控制端的_Data文件夹下。 3:注意文件名只能以英文命名。 //“控制端调用虚拟端”脚本截图 4:发布后,文件放置如下: //虚拟端全部放在控制端的Boiling_Data文件夹中,如下图所示: 阅读全文
posted @ 2017-03-29 09:43 CocomoNo1 阅读(190) 评论(0) 推荐(0) 编辑