1. 一个Scene里有一个或多个GameObject,一个GameObject有一个或多个Component。
2. 在GameObject下创建的Child,Child的坐标系方向与Parent的坐标系方向保持一致。
3. 注意localEulerAngles的值的变化(0与360度之间的跳变可能会出现负数)。
4. WheelCollider要接触到地面才能前进。
5. Unity Editor退出程序。
Errors:
1. The associated script can not be loaded.Please fix any compile errors and assign a valid script.
Answer : 脚本文件名与类名不一致。
2. 'Assets/Builds/Simple Client_Data/Managed/Assembly-CSharp.dll' shouldn't be queried by IsAssemblyCompatible, missing IsInternalOrCompiledAssembly check ?
UnityEditorInternal.InternalEditorUtility:GetMonoIslands()
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Answer : http://answers.unity3d.com/questions/38447/how-can-i-fix-error-applicationexception-unable-to.html?sort=votes.(好像解决了问题...)
3. Data Folder not Found.
Answer : http://answers.unity3d.com/questions/1223800/data-folder-not-found.html
4. SocketException: 由于目标计算机积极拒绝,无法连接。
Answer : Unity(C#.net)网络通信问题解决(服务器开启失败,Socket下的“由于目标机器积极拒绝,无法连接”异常)
5. There 2 audio Listener ...
Answer : There are 2 audio listeners in the scene.的问题
6. 在Unity中打开C#文件,出现无法加载xxx.sln文件。
Answer : sln文件的名字要与Unity项目文件夹的名字保持一致。
7. Button添加OnClick注册函数检测不到脚本类中的public函数。
Answer : 要添加的是包含脚本的GameObject而不是直接添加脚本,否则无法检测到要添加的函数。
参考资料:
Unity:使用 UGUI 的 ScrollRect 製作虛擬搖桿
Creating a simple multiplayer example
UnityNetwork简单demo(可以稍微参考一下的demo)