Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How do I define Development_Build define in command line

Discussion in 'Web' started by fwalker, Feb 27, 2023.

  1. fwalker

    fwalker

    Joined:
    Feb 5, 2013
    Posts:
    255
    When running from the editor we get a development build check box, and if we check it we get DEVELOPMENT_BUILD defined.

    What is the proper way to do the same for the command line?

    I have set BuildingOptions.Development and AllowDebugging in a build script, but that does not seem to define DEVELOPMENT_BUILD is it supposed to? It's a development build cause I see the information on the bottom left side of the screen "development build".
    Am I doing something wrong?

    Next, I will add -define DEVELOPMENT_BUILD to the command line, but that does not seem like the correct thing to do somehow. What it's the official way to do this?