How to shutdown unity game from dos prompt
I am able to launch a Unity game by entering the below command: C:\Users\Public\Documents\Unity Projects\Coin project\coin.exe But how would I shutdown a game from command line?
View ArticleCompile Scripts with Command Line
Hey Guys, I'm trying to get my head around how I can recompile my scripts using a command line. Most of the time I'm working in my IDE and I'm only opening Unity to see if the scripts are compiling...
View ArticlebuildWebPlayer not working
Hello, i'm done the build from command line, but not working. This is my line, executed from CMD in windows. Thanks for the help. Sorry my bad english. "C:\Program Files\Unity\Editor\Unity.exe" -quit...
View Articlemcs.rsp File Not Working
I'm trying to define preprocessor directives using the mcs.rsp file. I'm on windows, using c#. I followe the directions delineated [here][1] (at the bottom of the page). The file looks exactly like...
View ArticleThe -systemallocator switch
I have been struggling with accurate memory profiling for some time, and in the release notes for 2017.3 (found at https://unity3d.com/unity/whats-new/unity-2017.3.0), I noticed the following bullet...
View ArticlePrevent Start of Standalone Player Based on Command Line Parameter
I'm looking for a solution to the following problem: I need to prevent the standalone player from starting, if a specific command line parameter is missing. Of course, I can check...
View ArticleWindows command line returns 0 for compile errors in jenkins,
Hello, I'm trying to run tests on Jenkins. The command line is executing just fine for me, but for some reason windows in not returning it's exit code as expected. runScript = 'start /WAIT ""...
View ArticleUnet: Pass player script component from client to server
Hi guys, I'm trying to pass the PlayerController script to the spawned bullet to determine the next turn after it hit something. Players are always a client and server is the gameserver that it hosted...
View ArticleWhat minimum version of Unity supports command-line login on Mac OS,What...
This would be on MacOS. The genesis for this question is that our developers want to be able to load Unity Editor during a jenkins run. From our experience, if the build user doesn't log in...
View Article"-adapter" Unity player command line does not work
The "-adapter" command line argument that is still in the docs does not work any more. It used to work in older builds of my same project. It seemed to work when I was building with DirectX 9 and...
View ArticleGet notification from command line or other application when a printer finish...
Hello! I am working on a game in which people take selfie via webcam and the photo is printed by a printer. I am using System.Diagnostics.Process to open cmd.exe and pass command into it. ("rundll32...
View ArticleSharing a variable from command line with clients [C#][Unity]
Hello, so I've made an FPS and for a study, I need to change the frame rate of the clients. I currently execute the game from the command line and pass an argument *-fps* to set the frame rate I want....
View ArticleCompiling from command line
Hello! I am trying to set up some automated builds for my project using the command line, but Unity doesn't seem to want to do anything in batch mode for me. I have tried many combinations of commands...
View ArticleUnity Standalone CommandLineArgs
Hey, I'm currently trying to adapt an App to react when being started via an Url. Everything works fine for the first startup or when not using single-instance (which however is no option). I can...
View ArticleRun terminal cmd on osx
I'm trying to run a terminal cmd in osx Here's the code I'm using: public Process process; process = new Process(); process.StartInfo.FileName =...
View ArticleLightmapping through Command Line
Hello, I was wondering whether anyone has some advice/scripts on doing light mapping over the command line. To be more detailed, I have access to a linux cluster and would like to bake a procedural...
View ArticleClass could not be found when executing method from command line...
Hi all, I'm trying to call a method from the command line. The process is the following: - I call a method from class MyClass from the command line using **-executeMethod MyClass.MyMethod** - This...
View ArticleBuilding UWP/WSA from Command Line with Non-Test Certificate
I'm having an issue with building my Unity project through the command line with a certificate I got from Sectigo Limited with Code Signing. The reason why I went with getting a Sectigo Limited...
View ArticleHow to execute async method in batchmode correctly?,Questions about how to...
I have a static method named **DoIt** , in this method it will call another method named Process, which will process file data asynchronously. static void DoIt() { ...do something Process(data); ...do...
View ArticleNo serial number - Unity Personal - needed for CLI integration
Hi, I'm trying to set up a continuous build using Jenkins for our project. We're currently on the free version of Unity, so we have signed up for a license that doesn't have a serial number attached....
View ArticleRefreshing native plugins compatible for Editor in 0.00 ms, found 0 plugins.
Hi everyone! I use the circle to build the game. There are no files in the build output directory. This is my circleci config.yml:...
View ArticleCommand line build fails after updating to Unity 2019.4
I am trying to upgrade a project from Unity 2019.1.13f1 to 2019.4.4f1 and it seems to have gone smoothly when testing in the editor, however, it does not work when I try to build it from the...
View Articlesign apk from jenkins/commandline,how to sign android apk through...
hello, i am trying to build an apk from unity commandline through jenkins and am completely stuck on how to sign the APK. any insight would be amazing. public static void BuildAndroid() {...
View ArticleHow can I change the window title of my game during runtime? (multiple...
Hello! I have a very experimental game I am building wherein the User will have 4 instances of the game running simultaneously. When I launch the instances of the game through the commandline, each...
View ArticleRun code while the project is opening (editor mode)?
I would like to run some code as soon as I press my project title in Unity Hub, while the project is being opened in Unity. InitializeOnLoad, EditorApplication callbacks or even command line arguments...
View ArticleXR settings get reverted to default when runing project with the command line
Hi, I'm tring to build my project with the command line: "C:\Program Files\Unity\Hub\Editor\2021.1.16f1\Editor\Unity.exe" -quit -batchmode -projectPath "D:\myproject" -executeMethod...
View ArticleGenerating solution for project building
Hello, I am currently trying to create a CI/CD that build our unity prioject each time we merge our branch to master for example. Today we can build the solution from unity build settings but we need...
View ArticleCan't install the Apple Silicon version of Unity editor using the CLI
I'm trying to install the Apple Silicon version of Unity using the Unity Hub CLI using this command: /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2021.3.10f1...
View ArticleUse command line start unity project but just start unity hub not my project?
My unity hub version is 3.3.0 and unity version is 2021.3.13. When I open windows command line tools and change the path to unity editor 2021.3.13, input command `'start Unity.exe -projectPath D:\Unity...
View ArticleAliases not working in cmd run from Diagnostics.Process
I'm trying to create a build pipeline which uploads symbols to firebase after building. I'm running cmd /k and the command but for some reason in the terminal it won't recognize any aliases, including...
View Article