unity问题整理

  1. 游戏卡顿、帧率低?
    答:面数点数太多。不使用实时光照,不添加摄像机特效。
    参考:https://wenku.baidu.com/view/13a2bca50029bd64783e2c72.html?qq-pf-to=pcqq.c2c

  2. 物体闪烁、锯齿、白边黑边?
    答:要开抗锯齿,模型减面,烘焙光照贴图。
    参考:http://blog.csdn.net/shenmifangke/article/details/50474182

  3. 模型缩放导致贴图错误?
    答:在3DMax 和玛雅中设置好尺寸单位,导入Unity尺寸正确,3DMAX是毫米。

  4. Lighting选项卡怎么设置?
    答:点光源选Baked,强度0.8左右,软阴影。
    Scene选项卡
    CPU Usage 设Medium
    Baked Resolution 设80~110
    取消Compressed
    影响烘焙时间主要有三:Mesh Renderer的Scale in Lightmap,Realtime Resolution,Baked Resolution。

  5. 烘焙有黑斑?
    答:勾选Swap UVs,勾选Generate Lightmap UVs,提高resolution。

  6. 使用自建shader,Build后材质无效?
    答:创建一个新的ShaderVariantCollection, 设置这些着色器变体在加载游戏时自动预加载。
    参考:http://blog.csdn.net/ynnmnm/article/details/44674211

  7. 使用哪些插件?
    答:SteamVR Plugin, VRTK,DOTween。

  8. Vive入门视频?
    答:http://www.arinchina.com/article-1974-1.html
    http://www.bilibili.com/video/av5552611/
    http://edu.manew.com/course/174
    http://edu.manew.com/course/120

  9. Build后反射材质变黑?
    答:反射探头设置为Bake。

  10. 怎么播放视频?
    答:使用插件MediaDecoder。

  11. Output_log.txt地址在哪?
    答:C:\Users\Administrator\AppData\LocalLow…

  12. 错误:Not allowed to access vertices on mesh ‘Combined Mesh (root: scene) 2 Instance’UnityEngine.Mesh:get_vertices()
    解决办法:取消batching static

  13. Unity bake错误
    Failed reading from: ‘58/587f73b3abf5932b3bffad1eeaaaf1fb.pps’.
    Failed creating system: 0x587f73b3abf5932b3bffad1eeaaaf1fb.
    解决办法:在Preferences-GI Cache点clean cache清理缓存。

  14. 问题:Vive-teleport的Navmesh烘焙不出来?
    解决办法:删除A+ asset explorer插件。

16.12.10-17.1.16

  1. 问题:移动VR怎么做凝视触发?
    答:http://www.xifarm.com/vrgazeinput/

  2. Unity自定义编辑器窗口?
    答:Unity - Manual: Editor Windows https://docs.unity3d.com/Manual/editor-EditorWindows.html
    怎么自定义窗口背景颜色?
    答:Color custom editor window ? - Unity Answers
    http://answers.unity3d.com/questions/539114/color-custom-editor-window-.html
    怎么在EditorWindow画线?
    答:Drawing a line in a EditorWIndow? - Unity Answers
    http://answers.unity3d.com/questions/1146167/drawing-a-line-in-a-editorwindow.html
    EditorWindow更新?
    答:Editor script coroutine/timer/delay…? - Unity Answers
    http://answers.unity3d.com/questions/760383/editor-script-coroutinetimerdelay.html
    EditorWindow鼠标事件?
    答:Custom window panes in an EditorWindow:Unity3D
    https://www.reddit.com/r/Unity3D/comments/2t8qfx/custom_window_panes_in_an_editorwindow/

  3. Photon连接失败?
    答:不使用UDP,用TCP

你可能感兴趣的:(unity问题整理)