Quantcast
Channel: Questions in topic: "command line"
Viewing all articles
Browse latest Browse all 123

How to execute async method in batchmode correctly?,Questions about how to execute async method in batchmode

$
0
0
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 something } I start unity with following command.
%UNITY_EXE_PATH% -nographics -batchmode -quit -projectPath %LIP_SYNC_PROJECT_DIR% -executeMethod AutoCreateClip.DoIt audiodir %UNITY_PROJECT_AUDIO_DIR% filename in.wav audioduration %AUDIO_DURATION%
It worked fine, since it started unity and execute **DoIt** method, however, after DoIt finished, unity exit and the **Process** method does not finish, the data only process half. What may cause this happened?

Viewing all articles
Browse latest Browse all 123

Trending Articles