Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# SystemInfo.SupportsComputerShaders在一个项目中为true,而在另一个项目中为false_C#_Unity3d - Fatal编程技术网

C# SystemInfo.SupportsComputerShaders在一个项目中为true,而在另一个项目中为false

C# SystemInfo.SupportsComputerShaders在一个项目中为true,而在另一个项目中为false,c#,unity3d,C#,Unity3d,我愿意在unity3d中使用资产存储包。它在一些项目中正常工作,同时在一些已经创建的项目中显示错误和自定义错误(在代码中),类似于这样 if (!SystemInfo.supportsComputeShaders) { Debug.LogWarning("CapturePanorama requires compute shaders. Your system does not support them. " +

我愿意在unity3d中使用资产存储包。它在一些项目中正常工作,同时在一些已经创建的项目中显示错误和自定义错误(在代码中),类似于这样

 if (!SystemInfo.supportsComputeShaders)
            {
                Debug.LogWarning("CapturePanorama requires compute shaders. Your system does not support them. " +
                    "On PC, compute shaders require DirectX 11, Windows Vista or later, and a GPU capable of Shader Model 5.0.");
                return;
            }
我很惊讶为什么在某些项目中工作,为什么在某些项目中不工作?这个项目具体吗?但文件告诉我

存储设备信息,如CPU信息、电池寿命、, 内存量和操作系统版本


因此,它基本上说明了硬件而不是项目,为什么在使用不同的项目时会出现此错误?

尝试将序列化设置更改为“强制文本”,然后运行两个项目的项目间差异设置。这可以找出背后的原因线索尝试将序列化设置更改为“强制文本”,然后运行两个项目的项目间差异设置。这可以为这背后的原因找到线索