Quantcast
Channel: Answers by "oleclerc"
Viewing all articles
Browse latest Browse all 4

Answer by oleclerc

$
0
0
This feature is not implemented in Mono because it has no equivalent on systems other than windows, the way I made it work is to build a separate executable in standard .NET in visual studio that does the call to System.Management, bundle it with my Unity build and call it from Unity using the Process class like this: using System; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; proc.StartInfo.FileName = EXECUTABLE; proc.StartInfo.CreateNoWindow = true; proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; proc.Start(); string fingerprint = proc.StandardOutput.ReadLine(); proc.WaitForExit();

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images