上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页
摘要: using UnityEngine;using System.Collections;public class addSpeed : MonoBehaviour { public float scrollSpeed; float defaultScroll = 0.01f; flo... 阅读全文
posted @ 2014-05-22 12:30 softimagewht 阅读(385) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class stopSpeed : MonoBehaviour { public bool canStop = false; public float scrollSpeed = 5.0f... 阅读全文
posted @ 2014-05-22 09:31 softimagewht 阅读(239) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;public class wht : MonoBehaviour { static wht myInstance; public int x = 0; static int instances =... 阅读全文
posted @ 2014-05-21 08:19 softimagewht 阅读(178) 评论(0) 推荐(0)
摘要: Message相关有3条指令:SendMessage ("函数名",参数,SendMessageOptions) //GameObject自身的ScriptBroadcastMessage ("函数名",参数,SendMessageOptions) //自身和子Object的ScriptSendMe... 阅读全文
posted @ 2014-05-08 11:24 softimagewht 阅读(1522) 评论(0) 推荐(0)
摘要: 运行 3ds Max 时性能减慢或迟缓通常是由于视频配置冲突或内存分配问题引起的。关于性能问题的一大难点在于缩小范围确定问题原因。以下是一些限制 3ds Max 操作的常见情形,以及纠正这些问题可以采取的步骤。问题及解决方案3ds Max 速度降低3ds Max 启动缓慢文件打开时间长打开或拖动对话... 阅读全文
posted @ 2014-04-18 11:57 softimagewht 阅读(1087) 评论(0) 推荐(0)
摘要: 如果在遍历中删除或增加了部分元素,就会导致遍历失败,因为对象数组的长度发生了变化,索引随之而变,遍历的结果不完整或者引发运行时错误。其实不需要任何复杂的判断,最简单的方法是:倒过来遍历,像这样:for(int i =arraylist.count -1;i>=0;i--){ if(...) arraylist.remove(arraylist[i]);}这样保证你操作只影响后方元素的索引,不会影响往前的遍历。 阅读全文
posted @ 2014-04-06 18:51 softimagewht 阅读(270) 评论(0) 推荐(0)
摘要: 官方优化文档--优化图像性能 http://docs.unity3d.com/Documentation/Manual/OptimizingGraphicsPerformance.html Unity3D性能优化专题 性能优化是一个异常繁琐而又涉及到项目开发的方方面面的一个过程,它的本质是在运行时的一个时间里尽可能完美展现丰富的内容。 实现优化可以通过优化资源、渲染、粒子、物理等模式; 也可以通过修改模型大小、减少纹理尺寸并结合Unity3D的一些相关特性来提升游戏的性能。 随着移动端的设备硬件能力的提升,如何使用尽可能优化的资源和程序效率来展现出更多的细节内容就成为了每个开发者都应该思考的内 阅读全文
posted @ 2014-04-06 17:54 softimagewht 阅读(10122) 评论(1) 推荐(2)
摘要: 查看C:\ProgramData\Autodesk\Synergy下的max.2014.1.64.syncfg和Mudbox.2014.0.Windows.64.syncfg两个文件, 找到 ExecutablePath="_____ExecutablePath_____"改成ExecutablePath="D:\Program Files\Autodesk\Mudbox2014\mudbox.exe"注意max的文件改成你max的安装路径,MUDBOX的那个文件改成你MUDBOX的安装路径,已经有路径了的就不用修改了。重新打开max或者MUDBOX看看 阅读全文
posted @ 2014-04-02 10:32 softimagewht 阅读(758) 评论(0) 推荐(0)
摘要: ArrayList可以存放不同类型的数据,第一个可以是int,第二个可以是double等等而List存放的是单一的数据类型的数据用法如下:List xx = new List();ArrayList的用法如下:ArrayList xx = new ArrayList();一下内容为转:1、什么是ArrayList ArrayList就是传说中的动态数组,用MSDN中的说法,就是Array的复杂版本,它提供了如下一些好处:[list=disc]动态的增加和减少元素实现了ICollection和IList接口灵活的设置数组的大小2、如何使用ArrayList 最简单的例子:ArrayList Li 阅读全文
posted @ 2013-08-19 20:51 softimagewht 阅读(1408) 评论(0) 推荐(0)
摘要: using UnityEngine; using System.Collections;public class BTN : MonoBehaviour { void Awake () { //skill01 GameObject btn_skill01_01 = GameObject.Find("UI Root (2D)/Camera/Anchor/Panel/btn_skill01_01"); UIEventListener.Get(btn_skill01_01).onClick = ButtonClick_skill01_01; GameObject btn_skil 阅读全文
posted @ 2013-08-07 16:18 softimagewht 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页