摘要: 平时Background的ImageType一般都是Simple模式的 这样的话在Slider改变Value值的时候进度条会等比缩放这样的话看起来就很丑 所以Background的ImageType我选了Filled模式,这样图片就会变成贴图模式,图片将不是等比缩放而是 隐藏掉 阅读全文
posted @ 2017-05-11 00:44 RONGWEIJUN 阅读(4899) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/y1196645376/article/details/52602002 1.Unity5.x的AssetBundle的新功能。 为每个资源添加了AssetBundleName属性,我们可以通过Editor中的资源可视化视图下方为资源设置AssetB 阅读全文
posted @ 2017-03-29 19:34 RONGWEIJUN 阅读(2301) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/y1196645376/article/details/52567171 这篇文章主要讲的是旧版的AssetBundle打包一系列方案。 1.API介绍: Object mainAsset: 指定mainAsset,这样解析该AB包的时候可以通过ass 阅读全文
posted @ 2017-03-29 19:30 RONGWEIJUN 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/y1196645376/article/details/52556938 1.AssetBundle是什么呢? 2.AssetBundle 和 Reousrces 的区别呢? 3.使用AssetBundle实现资源热更的流程? 4.AssetBundl 阅读全文
posted @ 2017-03-29 19:26 RONGWEIJUN 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.taidous.com/thread-55060-1-1.html 一、UGUI简介 UGUI是Unity官方推出的UI系统,集成了所见即所得的UI解决方案, 其功能丰富并且使用简单,同时其源代码也是开放的,下载地址:https://bitbucket.org/Unity 阅读全文
posted @ 2017-03-22 01:52 RONGWEIJUN 阅读(369) 评论(0) 推荐(0) 编辑
摘要: XML与JSON在开发中非常重要, 其实核心就是处理字符串。一个是XML的字符串一个是JSON的字符串,尤其是在处理网络请求的时候,肯定是要用的。另外现在JSON非常的流行,我写了一个简单的例子融合了XML与JSON的合成与解析,希望大家喜欢! 首先注意头文件,LitJson是处理JSON的第三方 阅读全文
posted @ 2017-03-04 01:47 RONGWEIJUN 阅读(328) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; /// /// 相机跟随玩家 /// public class FollowPlayer : MonoBehaviour { private Transform player; private Vector3 offsetPosition; private float smot... 阅读全文
posted @ 2017-02-08 20:18 RONGWEIJUN 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 这样天空盒子就会自动旋转 设置 Material的参数的时候用 SetFloat() 详细的参数名前 要加上_. 阅读全文
posted @ 2017-02-03 18:15 RONGWEIJUN 阅读(1411) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; using System.Threading; using System.IO; using System.Net; public class ThreadDownLoadFile { //下载地址 public string url; //下载到本地的存入的位置 pu... 阅读全文
posted @ 2017-01-17 20:32 RONGWEIJUN 阅读(351) 评论(0) 推荐(0) 编辑
摘要: txt信息 工具类 测试类 阅读全文
posted @ 2017-01-16 13:08 RONGWEIJUN 阅读(654) 评论(0) 推荐(0) 编辑