unity工具相关: 获取当前设备的环境变量
[MenuItem("MyTest/TestVarValue")] public static void TestVarValue() { IDictionary environment = Environment.GetEnvironmentVariables(); string allKeyName = ""; foreach (string environmentKey in environment.Keys) { allKeyName = allKeyName +"|"+ environmentKey; } Debug.Log("TestVarValue allKeyName:"+allKeyName); Debug.Log("TestVarValue LOGNAME:"+ Environment.GetEnvironmentVariable("LOGNAME")); }