Unity3D基础
Chiuan
只有双手是程序猿,只有头脑是设计尸,我要成为程序尸
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
修复Unity3D EZGUI 1.06的UIManager 里面 AddCamera()方法
/// /// Adds the specified camera to the UI Cameras list at the specified index. /// /// The camera to be added. /// The layer mask for the camera. /// The depth into the scene the pointer shou原创 2012-01-14 16:33:56 · 2242 阅读 · 2 评论 -
Unity3D里面的Glow Effect的使用技巧
我们看到上图就是Glow Effect ,正式版的unity自带的image effect中的一个摄像机特效。但它是针对全屏幕渲染的。而且我们要明确一点,只需你知道我们场景中的GameObject的材质shader通过alpha通道进行控制这个光晕的。也就是说将alpha变成0那么将是原来的颜色。 1、控制每个gameobject发光颜色等,推荐使用 Self-Illuminated Sh原创 2012-01-17 15:40:24 · 13692 阅读 · 1 评论 -
Unity3D提高视频movie播放的质量
使用Miro Video Converter 转换器,转换成ogg theora,然后再导入到unity3d里面,效果会好些! 可以用材质球播放,也可以在OnGUI里面播 PS:视频播放的Component是MovieTexture 例如在OnGUI()播放: GUI.DrawTexture(new Rect(0, 0, Screen.width, Sc原创 2012-02-16 11:11:11 · 4121 阅读 · 1 评论 -
Unity3D关于内存优化,内存泄露、多线程、引用C++的dll的问题研究
一、对于要使用c++写好的类dll来提供给unity3d使用,那么我们可以如下: 详情请参考这篇文章 Start Visual Studio 2008. Select File > New > Project > Other Languages > Visual C++ > Class Library After project creation, right-click th原创 2012-03-23 15:30:58 · 9501 阅读 · 0 评论 -
Unity3D - AssetBundle 在Android机子上进行读取
我看到官方文档中说明: Note that bundles are not fully compatible between platforms. A bundle built for any of the standalone platforms (including webplayer) can be loaded on any of those platforms but not on原创 2012-03-23 15:29:17 · 13631 阅读 · 0 评论 -
Unity3D画直线、画点插件Vectrosity简介
U3D目前发现的一个画线最好的工具。 画一条直线 // Make Vector2 array; in this case we just use 2 elements... var linePoints = [Vector2(0, Random.Range(0, Screen.height)), // ...one on the left side of the screen s原创 2012-05-09 18:03:18 · 29081 阅读 · 3 评论 -
Platform Dependent Compilation 多平台兼容性使用注意事项
目地: 今天想修改公司重要模块兼容PC\MAC 和Android,因为涉及到硬件连接,所以以前偷懒分别做了2个项目,因为在这个项目里面需要增加一些通用的模块,UI显示。重复制作会带来麻烦。 刚好我知道Unity3D支持Platform dependent compliation。想让在Android和桌面平台使用不同的连接方式 假如我想让除了Android端外的平台执行某段代码: #i原创 2012-05-24 14:35:28 · 1657 阅读 · 0 评论 -
Unity3D性能优化 - Update() 的使用
个人认为在脚本方面采用面向对象的调用开发,每次在Update里面写代码的时候,你要考虑,是否值得这么做,因为我们都知道update是每一侦都会执行的,那么如果有些代码并不是每次都需要调用的,你就不应该放到update里面检测某个条件成立,然后再执行,这样就类似C语言的过程式编程了。 不知道大家是否完全了解了官方这里http://docs.unity3d.com/Documentation/Scr原创 2012-08-18 23:41:10 · 18986 阅读 · 0 评论 -
[Unity3D]uLua中类似Unity3D C# Messager的Event System
使用方式: 在自己的lua类中引用 Event = require 'events' 然后要在你使用的地方添加事件AddListener(eventName,handler): Event.AddListener("even", function () print('onEvent') end ) 在需要广播事件的地方Broca原创 2014-04-25 11:17:26 · 7303 阅读 · 5 评论 -
[Unity3D]关于中文注释导致的文件编码错误问题
ps,一直用osx开发,个人习惯用sublime text2编辑器。作为中国人原创 2014-06-28 00:23:57 · 4639 阅读 · 1 评论
分享