Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How can you create a build in an editor script with the same options as in Build Settings?

Discussion in 'Editor & General Support' started by virtualjay, Apr 19, 2021.

  1. virtualjay

    virtualjay

    Joined:
    Aug 4, 2020
    Posts:
    68
    I'm writing an editor script that builds an android apk for the Oculus Quest. I'd like the build to pick up all the platform-specific options that can be set under Build Settings. Particularly, Development Build and Script Debugging, but for completion sake all the others.

    Is it somehow done by EditorBuildSettings.AddConfigObject? I don't THINK so, but that's as close as I've been able to find. The only useful thing I've been able to get out of EditorBuildSettings is the scene list.