|
I've made a batch file with the following command line: Which calls the following method: It does build the three players but unfortunately it only compiles one of them. Is there anyway to force compile before building? Am I missing something? EDIT: I tried separating in different functions and different calls and the same thing happens, I get the 3 builds but only one has been compiled, the other 2 act as if there were no changes to the code.
(comments are locked)
|
The question has been closed Jun 27 '12 at 08:47 AM by Senhor de todo o Mal for the following reason:
The question is answered, right answer was accepted
|
Presumably, you can use EditorUserBuildSettings.SwitchActiveBuildTarget to set the active build target before you build. I haven't tried it but I came across the method and thought about your problem :) I'll have to try that.
Oct 26 '11 at 12:43 PM
Senhor de todo o Mal
It works :)
Oct 26 '11 at 02:49 PM
Senhor de todo o Mal
May I know how it can work? Because I tried it in my build script by putting it right before the BuildPlayer call, and it doesn't work.
Jan 12 at 04:06 AM
aksupport
(comments are locked)
|
|
If you place the command in a command file, eg. "compileall.cmd" and then make a function for each platform. Then you can auto compile all three just by clicking on the CMD file. would that be enough? Won't that be the same as I have? I'll try it anyway.
Aug 19 '11 at 08:32 AM
Senhor de todo o Mal
Same exact problem
Aug 19 '11 at 09:00 AM
Senhor de todo o Mal
(comments are locked)
|

which one is it compiling btw.?
The last build platform I had selected on the build settings.
have you had any success with this? What if you touch one of your code files between each call in the batch file?
Just as a note about C#, you don't need to null the scenes variable. It will be garbage collected the same way in either case. Nulling variables does NOT provide any hints to the garbage collector.