Command line building troubles.

Hello!

While building normally (via File → Build) my application size is 42 MB and is working as intended.

However, whenever I want to create CI process, I have to use BuildPipeline.BuildPlayer, which produces 1MB smaller binary, resulting in not working graphics in target device. (i firstly recalled if it is connected with -nographics flag, but it isn’t.)

As I recall, maybe there are some troubles with settings? However I have only “LZ4HC” checked in Edit Build Options Window in Unity.
Play Settings should be properly “applied” in every method, do I skip them as probable cause.

Kind regards.

App is build properly only if I have unity editor normally (with gui) opened. If I use any form of “hidden” unity editor it produces app without graphics (models are invisible/looks like broken game object).

I’m using Unity version 2019.2.0f1.

What can I do now?

Try looking at the 2 build reports and see what is missing