unity打开报错,包括不限于:Library\PackageCache\com.microsoft.mixedreality.toolkit.foundation@f2323a9b7aec\SDK\Experimental\NonNativeKeyboard\Scripts\CapsLockHighlight.cs(24,17): error CS0246: The type or namespace name ‘NonNativeKeyboard’ could not be found (are you missing a using directive or an assembly reference?)
GUID [226e0cc2f658ce84cb6185840350c806] for asset ‘Packages/com.microsoft.mixedreality.toolkit.examples/StandardAssets/Animations/ClippingSphere.controller’ conflicts with:
‘Assets/Animations/ClippingSphere.controller’ (current owner)
We can’t assign a new GUID because the asset is in an immutable folder. The asset will be ignored.
Multiple scripted importers are targeting the extension ‘glb’ and have all been rejected: GLTFast.Editor.GltfImporter (assembly: D:\MRTKDevTemplate\Library\ScriptAssemblies\glTFast.Editor.dll), Microsoft.MixedReality.Toolkit.Utilities.Gltf.Serialization.Editor.GlbAssetImporter (assembly: D:\MRTKDevTemplate\Library\ScriptAssemblies\Microsoft.MixedReality.Toolkit.Gltf.Importers.dll)
UnityEditor.AssetImporters.ScriptedImporter:RegisterScriptedImporters ()Multiple scripted importers are targeting the extension ‘gltf’ and have all been rejected: GLTFast.Editor.GltfImporter (assembly: D:\MRTKDevTemplate\Library\ScriptAssemblies\glTFast.Editor.dll), Microsoft.MixedReality.Toolkit.Utilities.Gltf.Serialization.Editor.GltfAssetImporter (assembly: D:\MRTKDevTemplate\Library\ScriptAssemblies\Microsoft.MixedReality.Toolkit.Gltf.Importers.dll)
UnityEditor.AssetImporters.ScriptedImporter:RegisterScriptedImporters ()GUID [af88777fe011b5c45b692bef39123ad5] for asset ‘Packages/com.microsoft.mixedreality.toolkit.examples/StandardAssets/Animations/ClippingBox.anim’ conflicts with:
‘Assets/Animations/ClippingBox.anim’ (current owner)
We can’t assign a new GUID because the asset is in an immutable folder. The asset will be ignored.GUID [11043ba092e44ae496f1361e7c0d8b0b] for asset ‘Packages/com.microsoft.mixedreality.toolkit.examples/StandardAssets/Materials/ShaderBallClippingPlaneInner.mat’ conflicts with:
‘Assets/Materials/ShaderBallClippingPlaneInner.mat’ (current owner)
We can’t assign a new GUID because the asset is in an immutable folder. The asset will be ignored.
分析是同时安装MRTK3和MRTK2导致的,解决办法:
打开window——package manager——找到所有2.8.3版本的MRTK的包,以及所有带红色叹号的包,全部点击右下角——remove。
一半可以解决很多问题