StansAssets / com.stansassets.build

Unity build system automation & additional API
5 stars 1 forks source link

feat: replace unity build pipeline option added #17

Closed alexey-yaremenko closed 3 years ago

alexey-yaremenko commented 3 years ago

Purpose of this PR

We need the Unity Build Pipeline (when the user press File->Build Settings->Build) replacement to be optional. Right now we are enforcing the user to use our build pipeline even when making a build. But it doesn't suit everyone. Added an option that allows leaving the Unity build pipeline to be untouchable.

If Replace Unity Build Pipeline option is enabled, you will get a custom build pipeline whether you making a build via the Unity menu or via your custom code. Otherwise - you will get a custom build pipeline only when you use BuildExecutor.Build deliberately (from your own code).

Testing status

Manual testing status

Tested build pipeline in a sample project