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. html和css(一)

    简单点来说html和css就是一起连在使用,有了html和css会使网页更加有活力,看起来更加的好看. html是做关于网页标签这一块相当于骨架,更深的还需要另一个来完成,那就是css,相当于向里面加 ...

  2. C#请求http向网页发送数据,网页接收

    首先,我们需要的是什么东西? 用POST方式请求http,给网页传输数据,网页接收到数据之后,把数据存储到数据库中. 1.首先请求http,建立连接,把转码过的数据传输过去 2.网页接收数据,在转码之 ...

  3. Socket编程指南及示例程序(转)

    1         前言 在一些常用的编程技术中,Socket网络编程可以说是最简单的一种.而且Socket编程需要的基础知识很少,适合初学者学习网络编程.目前支持网络传输的技术.语言和工具繁多,但是 ...

  4. HDU 5007 字符串匹配

    http://acm.hust.edu.cn/vjudge/contest/122814#problem/A 匹配到字符串就输出,水题,主要是substr的运用 #include <iostre ...

  5. Java集合篇五:HashMap

    1.HasMap 自定义基础版 package com.test.collection; /** * 自定义实现Map功能 * map :存放键值对,根据键对象找对应的值对象 * @author ch ...

  6. 【数据库】6.0 MySQL入门学习(六)——MySQL启动与停止、官方手册、文档查询

    1.0 MySQL主要有四种启动方式:直接启动.安全启动.服务启动.多实例启动. 直接启动: 服务器启动: 安全启动(最常用): 多实例启动: 2.0如何获得MySQL帮助 2.1官方手册 下面提供百 ...

  7. es6新增的数组方法和对象

    es6新增的遍历数组的方法,后面都会用这个方法来遍历数组,或者对象,还有set,map let arr=[1,2,3,4,3,2,1,2]; 遍历数组最简洁直接的方法法 for (let value ...

  8. LotusScript_文档查询循环方法整理

    1.  视图(View)查询 ... Set view = db.GetView("ViewName") Set doc = view.GetFirstDocument While ...

  9. 跨平台移动开发_PhoneGap 使用Geolocation基于所在地理位置坐标调用百度地图API

    使用Geolocation基于所在地理位置坐标调用百度地图API 效果图 示例代码 <!DOCTYPE html> <html> <head> <title& ...

  10. spring----对IoC和DI的理解

      学习过Spring框架的人一定都会听过Spring的IoC(控制反转) .DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC .DI这两个概念是模糊不清的,是很难理解的,今天和 ...