I have been using Unity3D to make game for half one year. I began to lean Unity3D with some books, online articles, forums, documents and Google. However although there are many helps, but for some problems I have to deal with them alone. And for some others, I have to solve them again and again (this could happen when some stress in the project).  Here are the some problems and it’s solution:

1) Every time some errors happen, please check the “Debug Console Window”output for details reasons;

2) Please click “Apply”button after you modify a prefab resource;

3) From the “Build Setting”, you could find and choose the current active platform;

4) Check “Edit”-> “Preference”-> “Always Launch Open Project Wizard”, this will make you open multiple Unity3D application in one computer;

5) If you want to scale or rotate some models or characters that already scaled or rotated, one good way is give it a parent game object, and you could scale or rotate the parent game object;

6) Unity will release the game object even if you keep them with static variable. You need to call Object.DontDestroyOnLoad function when such game object jut created; And when you really want to delete such object, you need to call Object.Destroy function and set it’s variable to null;

7) “Assets” folder is the current working folder;

8) For game object, scale, position property will work only when those properties reset. It will not work with it’s set function. Because they are structure instead of class in c#;

9) Unity could not support new a game object in any class constructors;

10) Every time when you re-assign a new parent to a game object (assign a new transform to tranform.parent), you need to reset it’s local scale value;

11) Build error for android, “UnityEditor.MonoAssemblyStripping.DoesTypeEnheritFrom …… ”, to address it just choose “Disable Strip Level”;

12) Make the game run even lose focus, check“Project Setting” –> “Player” –> “Run In Background”;

13) Z-fighting: a) Find the Camera, increase the “near value”and decrease the “far value”; b) Try to use “24bit Depth Buffer” in the player setting;

14) When you find that the skeleton animation is the performance neck, maybe you should consider to use frame animation. Unity will not convert skeleton animation to frame animation for you. So you need to provide unity with frame animation already in the FBX files.

15) Every time you use a boolean variable to check whether a special event happen, please make sure that on event already happen;

16) Provide the shader with some default parameters to make them be displayed;

17) Unity do not take the “short” type as editable parameter;

18) OpenGL ES 1.0 vs OpenGL ES 2.0, sometimes you need to uniform the shader version for all game objects. Either you make all game object use the simplest shader (fake shader with texture stage) or advanced shader (real shader), do not mix them. Otherwise it will cause some display problems on some android device.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Something More

Here are some other tricks that I use them usually:

1) mysql-nt  --install  # install mysql as a service

2) net stat mysql       # start up mysql service

3) net stop mysql       # shut down mysql service

4) mysqladmin –uroot password [password]    # login the mysql with root user name

 

Linux command

1) netstat -lnp|grep 88      # check which process take 88 port

2) ps [process id]              # check the process details information

3) kill –9 [process id]         # kill the process with given process id

4) java –jar Hello.jar &       # run the Hello.jar as the background process

Unity3D usage Experience的更多相关文章

  1. xmind 8 readme

    xmind 8 readme   README     LICENSE   XMind 3 is dual licensed under 2 open source licenses: the Ecl ...

  2. Unity3D用户手册

    Unity Manual 用户手册 Welcome to Unity. 欢迎使用Unity. Unity is made to empower users to create the best int ...

  3. C# 事件和Unity3D

    http://zijan.iteye.com/blog/871207 翻译自: http://www.everyday3d.com/blog/index.php/2010/10/04/c-events ...

  4. 处理Linux下subversion尝试连接自建的VisualSVN server报“Key usage violation in certificate has been detected”错误的问题

    在Linux下使用subversion尝试链接VisualSVN server搭建的svn库,可能会报下面错误, svn: OPTIONS of 'https://server.domain.loca ...

  5. unity3d插件Daikon Forge GUI 中文教程6-高级控件richtextlabel的使用

    3.5.richtextlabel文本 可以像Word文档一样编辑出多样的内容,图片,字体颜色大小下划线.超链接背景等等. Defaults: 默认字体 默认图集 Blank Texture :空白的 ...

  6. Unity3d优化

    检测方式: 一,Unity3D 渲染统计窗口 Game视窗的Stats去查看渲染统计的信息: 1.FPS fps其实就是 frames per second,也就是每一秒游戏执行的帧数,这个数值越小, ...

  7. Investigating Your RAM Usage

    转载自:http://developer.android.com/intl/zh-cn/tools/debugging/debugging-memory.html Because Android is ...

  8. Unity3D Optimizing Graphics Performance for iOS

    原地址:http://blog.sina.com.cn/s/blog_72b936d801013ptr.html icense Comparisons http://unity3d.com/unity ...

  9. Unity3d中C#使用指针(Unsafe)的办法(转)

    近日由于在U3D项目中要使用到数据传递(C++ DLL的数据传递给U3D中的C#),其中涉及到需要使用C#的指针.直接编译会出现以下错误Unsafe code requires the 'unsafe ...

随机推荐

  1. javascript 实现函数/方法重载效果

    什么是重载? 在C#和JAVA等编程语言中函数重载是指在一个类中可以定义多个方法名相同但是方法参数和顺序不同的方法,以此来实现不同的功能和操作,这就是重载. JS没有重载,只能模拟重载 一般来说,如果 ...

  2. 【设计模式】template method(模板方法)-- 类行为型模式5.10

    1.意图 子类在不改变父类的算法结构的情况下,可以重定义算法的某些特定步骤 2.动机 模板方法用一些抽象的操作定义一个算法,子类重定义这些操作以提供具体的行为:步骤的顺序定了,但实现可以调整: 3.适 ...

  3. Python 动态加载 Extension Manager Classes

    看着看着发现了一个库:stevedore(http://stevedore.readthedocs.org/en/latest/managers.html),但是感觉文档做得不行啊,都没个tutori ...

  4. Nginx管理(一)

    一.Nginx介绍 Nginx (engine x) 是一个高性能的HTTP和反向代理服务,也是一个IMAP/POP3/SMTP服务. 1.Nginx历史和特性 Nginx是由伊戈尔·赛索耶夫为俄罗斯 ...

  5. scss-@mixin

    @mixin指令用于定义混入,它包括任选的变量和参数中的mixin名称后. scss简单示例: @mixin style { .cont{ color: #77C1EF; } } @include s ...

  6. caffe-windows之手写体数字识别例程mnist

    caffe-windows之手写体数字识别例程mnist 一.训练测试网络模型 1.准备数据 Caffe不是直接处理原始数据的,而是由预处理程序将原始数据变换存储为LMDB格式,这种方式可以保持较高的 ...

  7. angular2-生命周期钩子函数

    生命周期的顺序 当Angular使用构造函数新建一个组件或指令后,就会按下面的顺序在特定时刻调用这些生命周期钩子方法: 钩子 目的和时机 ngOnChanges() 当Angular(重新)设置数据绑 ...

  8. checkbox中把选项文字与小圆圈关联上

    跳舞 唱歌 阅读 睡觉 <form><input id="1" type="checkbox" name="hobbies" ...

  9. matlab练习程序(随机粒子切换特效)

    视频制作软件中一般都会有相邻帧切换的特效,我过去用过vagas好像就有很多切换特效. 我想这个也算是其中一种吧,虽然我不确定实际中到底有没有这种切换. 实际上我只是下班后太无聊了,写着玩的,没什么高深 ...

  10. Windows7建立无线热点

    很实用的技巧,加以记录. 最初我是想使用connectify的,不过安装这个软件之后,发现有线账号登不上了,所以就选择使用Windows7自带的工具了. 首先以管理员身份运行cmd. 进入之后cd到c ...