随笔 - 579  文章 - 2 评论 - 35 阅读 - 56万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

02 2012 档案
AssetDatabase 资源数据库
摘要:AssetDatabase is an API which allows you to access the assets contained in your project. Among other things, it provides methods to find and load assets and also to create, delete and modify them. The Unity Editor uses the AssetDatabase internally to keep track of asset files and maintain the linkag 阅读全文
posted @ 2012-02-07 18:08 Dufe王彬 阅读(1614) 评论(0) 推荐(0) 编辑
动态加载网上或者本地场景(转)
摘要:var gui : GUITexture;var find : GameObject;var GameObjectName;function Awake(){//找到guiTexture,当初始加载时让其不可用 find=GameObject.Find("guiTexture"); find.active=false; GameObjectName=GameObject.Find("Cube").tag;//通过tag来传递参数给www()函数} function OnMouseDown(){ find.active=true; //Debug.Log( 阅读全文
posted @ 2012-02-02 15:30 Dufe王彬 阅读(397) 评论(0) 推荐(0) 编辑
在Unity3D的网络游戏中实现资源动态加载
摘要:用Unity3D制作基于web的网络游戏,不可避免的会用到一个技术-资源动态加载。比如想加载一个大场景的资源,不应该在游戏的开始让用户长时间等待全部资源的加载完毕。应该优先加载用户附近的场景资源,在游戏的过程中,不影响操作的情况下,后台加载剩余的资源,直到所有加载完毕。本文包含一些代码片段讲述实现这个技术的一种方法。本方法不一定是最好的,希望能抛砖引玉。代码是C#写的,用到了Json,还有C#的事件机制。在 讲述代码之前,先想象这样一个网络游戏的开发流程。首先美工制作场景资源的3D建模,游戏设计人员把3D建模导进Unity3D,托托拽拽编辑场景,完成 后把每个gameobject导出成XXX. 阅读全文
posted @ 2012-02-02 15:27 Dufe王彬 阅读(529) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示