Poco-SDK icon indicating copy to clipboard operation
Poco-SDK copied to clipboard

[Unity] Unity 2018.4.7f1版本下获取CPU核心数量会报错

Open HBoPRC opened this issue 4 years ago • 5 comments

导入 SDK 后会报错,如图: image

HBoPRC avatar Apr 14 '20 02:04 HBoPRC

把ConcurrentDictionary.cs替换成这个文件试试,好像不能直接传cs文件,你下载下来后把.txt改成.cs

ConcurrentDictionary.txt

TreHack avatar Apr 15 '20 02:04 TreHack

把ConcurrentDictionary.cs替换成这个文件试试,好像不能直接传cs文件,你下载下来后把.txt改成.cs

ConcurrentDictionary.txt

Assets\Scripts\Unity3D\ConcurrentDictionary.cs(57,31): error CS0246: The type or namespace name 'Mscorlib_DictionaryDebugView<,>' could not be found (are you missing a using directive or an assembly reference?)

自己能看到 Mscorlib_DictionaryDebugView,但是就是报没找到的错

HBoPRC avatar Apr 15 '20 08:04 HBoPRC

我目前是把 ProcessorCount 删了在用

HBoPRC avatar Apr 15 '20 08:04 HBoPRC

image 应该得把这行删掉

TreHack avatar Apr 16 '20 07:04 TreHack

还是不行 image

HBoPRC avatar Apr 20 '20 02:04 HBoPRC