- Home /
Question by
SweatyChair · Apr 05, 2019 at 01:48 AM ·
androidbuildbuild settingscompression
Build API CompressWithLz4HC doesn't work
I try to build in Android with API using CompressWithLz4HC:
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions {
scenes = GetBuildScenes(),
locationPathName = targetPath,
target = EditorUserBuildSettings.activeBuildTarget,
options = BuildOptions.CompressWithLz4HC
};
var report = BuildPipeline.BuildPlayer(buildPlayerOptions);
However the compression option doesn't seems to work, I still have to manually set the compression setting in Build Settings.
Here's the file sizes using the code, without and with manually setting the compression settings:
So, is that not working or I'm not using it correctly?
screen-shot-2019-04-05-at-124806-pm.png
(20.8 kB)
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Keep file structure on build. 1 Answer
Not detecting touch in android device if Gradle build system with Build app bundle (Google play) 0 Answers
iOS vs Android build 6 Answers
Script to Zip files on Build? 0 Answers