当前位置:网站首页>Unity call Exe program
Unity call Exe program
2022-06-30 05:08:00 【zjh_ three hundred and sixty-eight】
windows In the program Debug File copy to unity Project documents ( and Assets Folder siblings ), modify Debug File name reuse code call .
private string savePath = System.Environment.CurrentDirectory+ @"\ Folder name ";
public void RunExeByProcess(string arguments)
{
// Start a new thread
System.Diagnostics.Process process = new System.Diagnostics.Process();
// Called exe name
process.StartInfo.FileName = "ProjectName";
process.StartInfo.WorkingDirectory = savePath;
// Pass parameters
process.StartInfo.Arguments = arguments;
process.Start();
process.WaitForExit();// pause , Execution can continue only after the external program exits
if (process.ExitCode == 0)// Program exit
{
print(" Successful implementation ");
}
}
边栏推荐
猜你喜欢
随机推荐
Pit of smoothstep node in shadergraph
Pytorchcnn image recognition and classification model training framework
Error about the new version of UE4: unavigationsystemv1:: simplemovetoactor has been deprecated
Leetcode 180 Consecutive numbers (2022.06.29)
Unity script life cycle and execution sequence
Golan no tests were run: fmt Printf() < BUG>
Nestjs configures static resources, template engine, and post examples
Unity project hosting platform plasticscm (learn to use 1)
产生 BUG 测试人员需要自己去分析原因吗?
Writing unityshader with sublimetext
Unity profiler performance analysis
Basic operations of Oracle data
Unity + hololens common basic functions
Ugui uses its own function to realize reverse mask
Records of problems encountered in unity + hololens development
pycharm 数据库工具
Tensorflow2 of ubantu18.04 X installation
Unreal 4 learning notes - Animated Montage
2021-03-16
Log writing specification