Google VR开发

1.Unity PlayerSetting Minium APK

Android下Unity设置最小包

这里的APK包只包含了ARMv7版本
Strip Assemblies : 通过分析脚本的字节码,来将这些脚本没有引用的类和方法从Dll中删除,从而使其不进入AOT编译阶段。这种优化减少了主要的二进制以及相应Dll的大小。在不使用反射的条件下,这种优化是安全的。

**引用 : **http://blog.csdn.net/amazonzx/article/details/7437650

2.Google VR 设置

Player Settings

Inside the Unity Project use the toolbar to go to Go to:
Edit -> Project Settings -> Player

Inside Resolution and Presentation select the following settings:

  • Default Orientation: Landscape Left.
  • Use 32-bit Display Buffer: Disabled.
    Resolution and Presentation设置

Inside Other Settings are the following:

  • Rendering Path: Legacy Vertex Lit.
  • Multithreaded Rendering: Enabled.
  • Static Batching: Enabled.
  • Dynamic Batching: Enabled.
    Other Setting设置

Quality Settings

Inside the Unity Project use the toolbar to go to Go to:
Edit -> Project Settings -> Quality

  • Anti Aliasing: 2x Multi Sampling.
  • Soft Particles: Disabled.
  • Realtime Reflection Probes: Disabled.
  • Shadows: Disable Shadows.
    Quality设置

**引用 : **https://github.com/googlevr/gvr-unity-sdk/tree/master/Samples/CastleDefense

播放视频:http://www.w3school.com.cn/i/movie.ogg

3.Android生成报错问题FIX

  • Unity下Android ARMv7和X86 so重名报错
    需要设置so的环境
  • Perforce上传数据后,拉取信息数据出错
    需要打开Edit/Project Settings/Editor中的Visible Meta Files
    Editor Settings

4.根据CardboardDesignLabs的工程更新几处工程设置

ResolutionAndPresentation.png

OtherSettings.png

QualitySettings.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容