1.Unity PlayerSetting Minium APK
Android下Unity設(shè)置最小包
這里的APK包只包含了ARMv7版本
Strip Assemblies : 通過分析腳本的字節(jié)碼显熏,來將這些腳本沒有引用的類和方法從Dll中刪除,從而使其不進(jìn)入AOT編譯階段晒屎。這種優(yōu)化減少了主要的二進(jìn)制以及相應(yīng)Dll的大小喘蟆。在不使用反射的條件下,這種優(yōu)化是安全的鼓鲁。
**引用 : **http://blog.csdn.net/amazonzx/article/details/7437650
2.Google VR 設(shè)置
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設(shè)置
Inside Other Settings are the following:
- Rendering Path: Legacy Vertex Lit.
- Multithreaded Rendering: Enabled.
- Static Batching: Enabled.
-
Dynamic Batching: Enabled.
Other Setting設(shè)置
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設(shè)置
**引用 : **https://github.com/googlevr/gvr-unity-sdk/tree/master/Samples/CastleDefense
播放視頻:http://www.w3school.com.cn/i/movie.ogg
3.Android生成報(bào)錯(cuò)問題FIX
-
Unity下Android ARMv7和X86 so重名報(bào)錯(cuò)
需要設(shè)置so的環(huán)境 -
Perforce上傳數(shù)據(jù)后蕴轨,拉取信息數(shù)據(jù)出錯(cuò)
需要打開Edit/Project Settings/Editor中的Visible Meta Files
Editor Settings
4.根據(jù)CardboardDesignLabs的工程更新幾處工程設(shè)置
ResolutionAndPresentation.png
OtherSettings.png
QualitySettings.png