1.已添加引用System.Management

2.using System.Management

报错 :Assets\Scirpts\Computer.cs(2,14): error CS0234: The type or namespace name ‘Management’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)

解决方法 :在unity 安装路径下找到System.Management.dll 复制到Assets 下plugins文件夹里 就可以了

(ps:System.Management.dll在unity安装路径Unity\Editor\Data\MonoBleedingEdge\lib\mono\2.0-api)

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐