随笔分类 -  Unity3D

摘要:http://gad.qq.com/article/detail/26112 PUN介绍 入门 Photon Unity Networking(首字母缩写PUN)是一个Unity多人游戏插件包。它提供了身份验证选项、匹配,以及快速、可靠的通过我们的Photon后端实现的游戏内通信。 PUN输出几乎所 阅读全文
posted @ 2017-12-05 22:02 alps_01 阅读(1302) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/sifenkesi/p/4045392.html protobuf是google的一个开源项目,可用于以下两种用途: (1)数据的存储(序列化和反序列化),类似于xml、json等; (2)制作网络通信协议。 源代码下载地址:https://githu 阅读全文
posted @ 2017-11-30 22:39 alps_01 阅读(218) 评论(0) 推荐(0) 编辑
摘要:http://tieba.baidu.com/p/2700101781?red_tag=x3417052518 比如说看这张图角色已经人形化(Humanoid)了,那它的动画可以用在其它的模型上了也就是可以共用一套模型动画了但是你有没有发现那动画是和fbx模型绑在一起的,没关系你可以选中这几个动画文 阅读全文
posted @ 2017-11-30 20:04 alps_01 阅读(990) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/suifcd/article/details/51570003 Unity5在Asset bundle 打包管理上采用了全新的方式,不需要再对每个文件进行MD5比对,unity已经帮我们做好了,对需要打包的资源AssetBundle属性就行了,同事Unity 阅读全文
posted @ 2017-11-30 16:00 alps_01 阅读(1411) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/lodypig/article/details/51879702 AssetBundle内存占用 建议 实测 www加载实测 LoadFromFile加载实测 建议 AssetBundle内存占用 建议 实测 www加载实测 LoadFromFile加载实测 阅读全文
posted @ 2017-11-30 15:01 alps_01 阅读(2413) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/ybgame/p/3973177.html?utm_source=tuicool&utm_medium=referral 这篇文章从AssetBundle的打包,使用,管理以及内存占用各个方面进行了比较全面的分析,对AssetBundle使用过程中的一些 阅读全文
posted @ 2017-11-30 14:58 alps_01 阅读(329) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/ldy597321444/article/details/53519753 android的默认调试签名,所有市场都不允许debug签名的应用发布的。所以,第一次发布时新建一个代表自己签名的key和keystore,以后都用这个,如果以后你的公司大了,有别的 阅读全文
posted @ 2017-11-30 12:11 alps_01 阅读(1595) 评论(0) 推荐(0) 编辑
摘要:https://forum.unity.com/threads/unable-to-merge-android-manifests-for-vr.450528/ 原文:http://www.jianshu.com/p/fe4c334ee9fe 现象 在用 Unity 编译 Android 平台的应用 阅读全文
posted @ 2017-11-29 11:58 alps_01 阅读(1904) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/BeiFuDeNvWang/article/details/50838266 在代码中动态改变RectTransform大小的方法如下所示: 1:直接对sizeDelta属性进行赋值,其中X和Y可以对应理解成width和height。sizeDelta的具体 阅读全文
posted @ 2017-11-13 01:05 alps_01 阅读(516) 评论(0) 推荐(0) 编辑
摘要:锁定物体的X轴旋转 using UnityEngine;using System.Collections;public class LookAtMainCamera : MonoBehaviour { public bool LookMode = false; void Update () { va 阅读全文
posted @ 2017-11-12 23:20 alps_01 阅读(592) 评论(0) 推荐(0) 编辑
摘要:项目需要做一个茶壶的壶盖抖动的动画 RotationShake using UnityEngine;/// <summary>/// 旋转抖动动画/// </summary>public class RotationShake : MonoBehaviour { public float zAngl 阅读全文
posted @ 2017-11-12 23:14 alps_01 阅读(434) 评论(0) 推荐(0) 编辑
摘要:using UnityEngine;using System.Collections;// 主界面的开始按钮使用该脚本,控制上下来回浮动public class Floating : MonoBehaviour { float radian = 0; // 弧度 float perRadian = 阅读全文
posted @ 2017-11-12 17:31 alps_01 阅读(4551) 评论(0) 推荐(0) 编辑
摘要:http://blog.sina.com.cn/s/blog_e82e8c390102wh2z.html 实现方法:通过Image组件中Image Type属性中Fill Amount,通过代码改变Fill Amount的值就可以实现进度条效果 首先在Hierarchy中创建UI>Image,调整I 阅读全文
posted @ 2017-11-07 00:03 alps_01 阅读(1292) 评论(0) 推荐(0) 编辑
摘要:本文固定连接:http://blog.csdn.net/u013108312/article/details/52712844 WWW实现图片资源显示以及保存和本地加载 阅读全文
posted @ 2017-11-06 23:43 alps_01 阅读(8220) 评论(0) 推荐(0) 编辑
摘要:using UnityEngine;using System.Collections;public class ProceduralTexture : MonoBehaviour{ public int widthHeight = 512; /// <summary> /// 生成的图片 /// < 阅读全文
posted @ 2017-11-06 23:22 alps_01 阅读(2533) 评论(0) 推荐(0) 编辑
摘要:创建一个脚本 附加到一个游戏体上 using UnityEngine;using System.Collections; public class ProceduralTexture : MonoBehaviour{#region Public Variables //纹理的宽高 public in 阅读全文
posted @ 2017-11-06 09:45 alps_01 阅读(2569) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/EndOfYear/p/4334952.html 先上代码:using System.Threading;using UnityEngine;using System.IO;using System.Collections; public class T 阅读全文
posted @ 2017-11-06 09:43 alps_01 阅读(1636) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/bingheliefeng/article/details/51177505 using UnityEngine;using System.Collections;using System.IO; public class SaveToPng : MonoB 阅读全文
posted @ 2017-11-06 09:26 alps_01 阅读(8046) 评论(0) 推荐(0) 编辑
摘要:http://www.xuanyusong.com/archives/2405 上一篇文章中我们相惜讨论了Assetbundle的原理,如果对原理还不太了解的朋友可以看这一篇文章:Unity3D研究院之Assetbundle的原理(六十一) 本篇文章我们将说说assetbundle是如何实现的。 1 阅读全文
posted @ 2017-11-05 23:36 alps_01 阅读(230) 评论(0) 推荐(0) 编辑
摘要:www.xuanyusong.com/archives/2373 Assetbundle 是Unity Pro提供提供的功能,它可以把多个游戏对象或者资源二进制文件封装到Assetbundle中,提供了封装与解包的方法使用起来很便利。 1.预设 Assetbundle可以将Prefab封装起来,这是 阅读全文
posted @ 2017-11-05 23:35 alps_01 阅读(207) 评论(0) 推荐(0) 编辑