This class spawns and runs Doxygen in a separate thread, and could serve as an example of how to create plugins for unity that call a command line application and then get the data back into Unity safely.
コード例 #1
0
    public void RunDoxygen()
    {
        string[] Args = new string[1];
        Args[0] = Config.DocDirectory + "/Doxyfile";

        DoxygenOutput = new DoxyThreadSafeOutput();
        DoxygenOutput.SetStarted();

        Action <int> setcallback = (int returnCode) => OnDoxygenFinished(returnCode);

        DoxyRunner Doxygen = new DoxyRunner(Config.PathtoDoxygen, Args, DoxygenOutput, setcallback);

        Thread DoxygenThread = new Thread(new ThreadStart(Doxygen.RunThreadedDoxy));

        DoxygenThread.Start();
    }
コード例 #2
0
ファイル: DoxygenWindow.cs プロジェクト: repelex/Droid-Soccer
	public void RunDoxygen()
	{
		string[] Args = new string[1];
		Args[0] = Config.DocDirectory + "/Doxyfile";

      	DoxygenOutput = new DoxyThreadSafeOutput();
      	DoxygenOutput.SetStarted();

      	Action<int> setcallback = (int returnCode) => OnDoxygenFinished(returnCode);

      	DoxyRunner Doxygen = new DoxyRunner(Config.PathtoDoxygen,Args,DoxygenOutput,setcallback);

      	Thread DoxygenThread = new Thread(new ThreadStart(Doxygen.RunThreadedDoxy));
      	DoxygenThread.Start();
	}