上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: http://tech.ddvip.com/2013-02/1359737407190064.htmlStreaming AssetsMost assets in Unity are combined into the project when it is built. However, it is sometimes useful to place files into the normal filesystem on the target machine to make them accessible via a pathname. An example of this is the de 阅读全文
posted @ 2013-12-12 10:51 古刹红罗 阅读(282) 评论(0) 推荐(0)
摘要: C#使用StreamWriter类写入文件文件(2011-07-26 18:24:17)转载▼标签:杂谈分类:Unity3d除了使用FileStream类读写文本文件,.net还提供了StreamWriter类和StreamReader类专门处理文本文件。这两个类从底层封装了文件流,读写时不用重新编码,提供了更文件的读写方式。StreamWriter类允许将字符和字符串写入到文件中,不必转换为字节,它处理底层的转换,向FileStream对象写入数据。一、创建StreamWrite对象如果已经有了FileStream对象,则可以使用此对象来创建StreamWriter对象:FileStream 阅读全文
posted @ 2013-12-06 16:13 古刹红罗 阅读(2610) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class Distance : MonoBehaviour { public GameObject _A; float _distance; // Use this for initialization void Start () { } // Update is called once per frame void Update () { _distance = Mathf.Sqrt(Mathf.Pow((_A.... 阅读全文
posted @ 2013-11-29 19:47 古刹红罗 阅读(249) 评论(0) 推荐(0)
摘要: C#静态函数属于类而不属于具体对象,调用的时候不能用:对象.func()而是用:类名.func()静态函数里边只能有类的静态变量,不能有类的普通成员 阅读全文
posted @ 2013-11-28 11:52 古刹红罗 阅读(286) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/feixiaoxing/article/details/7001999 阅读全文
posted @ 2013-11-28 11:44 古刹红罗 阅读(151) 评论(0) 推荐(0)
摘要: 问题源自一个帖子,因为上传的图比较多,就另开了这个贴写下自己的试验结果,原帖在下面链接中http://game.ceeger.com/forum/read.php?tid=8911#infoNGUI中是用depth来控制sprite显示顺序的,本来这很好用,但碰到上面帖子中的问题时却不好解决了,于是我试验了下。以下是一些总结,不对的地方请指正。下面的内容可能看起来比较绕,这样的话只需实际试验下就能很容易的知道结果,呵呵如果还是看不明白,可以先看1楼,那里有个总结1,同一个panel下,同一个atlas的不同sprite的显示只受depth的控制,这是最经常用的方式。此时不论精灵的z轴如何变化, 阅读全文
posted @ 2013-11-27 13:52 古刹红罗 阅读(354) 评论(0) 推荐(0)
摘要: 新增:http://www.360doc.com/content/13/1209/22/15011722_335835538.shtml[unity3d] iTween文档解析(1) (iTween方法和属性)分类:unity3diTween2012-03-15 20:452186人阅读评论(0)收藏举报文档integer脚本AudioFrom:pitch和volum属性提供的是初始值audioTo: pitch和volum属性提供的是终结值audioUpdate:pitch和volum属性提供的是终结值 此方法用于Update()方法中CameraFadeAdd:创建一个对象可以模拟摄相机的 阅读全文
posted @ 2013-11-25 13:09 古刹红罗 阅读(776) 评论(0) 推荐(0)
摘要: 摄像机的渐隐渐现用CameraFadeTo等函数物体的透明度调整用FadeTo等函数物体的移动可以用moveto等函数如果用来做菜单按钮,用punch系列函数很快,PunchPosition,应该就是实现的位置上的小偏移物体的旋转RotateTo物体的缩放scaleto物体的抖动shake系列实现数值的持续变化,用valueto,比如金币滚动的效果示例:iTween.rotateFrom(go,{"y":90, "time":1.5, "transition":"easeInExpo"});//旋转从90度到当前i 阅读全文
posted @ 2013-11-25 11:01 古刹红罗 阅读(849) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class Orientation : MonoBehaviour { // Use this for initialization public enum _trans{position,rotation}; public _trans _t; public float _limitMin=-180; public float _limitMax=180; float _positionX; float _rotationY; float _de... 阅读全文
posted @ 2013-11-25 09:20 古刹红罗 阅读(225) 评论(0) 推荐(0)
摘要: http://msdn.microsoft.com/zh-cn/library/ebca9ah3.aspx 阅读全文
posted @ 2013-11-22 11:19 古刹红罗 阅读(909) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页