HoloLens 2开发常见问题汇总.docx
HoIoLens2开发常见问题汇总1、如果CG模型等仅在HoIoLens的一侧(左眼)显示怎么办问题:HoIoLens仅在一侧(左眼)显示CG模型等MRC(混合现实捕获)不显示特定的CG模型等(显示其他)原因:CG模型着色器不支持SinglePass渲染解决方案:ScenesInBuildAddOpenScenesPlatform1PC,Mac&LinuxStandaloneUniversalWindowsPlatformUniversalWindowsPlatformWTargetDeviceAnydeviceflAndroidArchitecture×64BuildTypeD3DProjecttQTuCSTargetSDKVersionLatestinstalledIvCIVDDMinimumPlatformVersion10.0.10240.0FiraPS4VisualStudioVersionLatestinstalledBuildandRunonLocalMachineiOSiosBuildconfigurationReleaseCopyReferences日XboxOneCopyPDBfiles窗WebGLDevelopmentBuildAutoconnectProfilerDeepProfilingSupportScriptDebuggingScriptsOnlyBuildCompressionMethodDefaultLearnaboutUnItyCloUdBUHdPlayerSettings.BuildBuiIdAndRun。ProjectSettingsAuOOEditorGraDbicsInouxManaQefPhvsicsPhvstes2DPtaverPresetManagerQuttlitvScrKXExecuUonOderTaqsandLaversTextMeshProTimeVFXXRPluainMenaoementPlayerDefaultIconDefauttCursorCursorHoispotSettingsforUniversalEndowsPQtformIconRsohttonandPresentationSplahlmgOtherSettingsPublishingSettingsXRSettingsMon<Texture20)SNetNon<TMu<2D)OBurXR«<tepfseatedndIVflOertie<j<nafuturvrwnofUnity.Umthenwu11<yXRPlbQirtSyMemn*tadYoucanfMMttr>gaforUnityXR人即SytfHnlfctSttmgundarXRPU9nMangmntDeprecatedSettingsVirtualReahtySuppoftdVirtualRealitySDKsWindowsMtxedRealityDepthFormatEnableDepthBufferSharing1>bitdepthStereoRenderingMode*WSAHolographicRemcMlngSupportedMulUPassOOwtMRMrqMrdUrtMtfiumgWSAHotodMultiPassngyassSinglePmsInstancedTextMeshPro也有类似情况TextMeshProForTextMeshProobjects,selecttheTMPGameObjecttoviewitintheinspector.UnderthematerialcomponentswitchtheshaderfortheassignedmaterialtousetheMRTKTextMeshProshader.2、MRTK着色器错误将MRTK导入到项目中可能会导致MRTK着色器错误。可能有多种因素,但是在此示例中,原因是管道不支持它。解决方案是删除管道或使用相应的管道。3、关于错误"Couldnotfindanysupportedvisualstudioinstallations”解决方法当我像往常一样尝试构建HoIoLens时,在Unity中出现了这样的错误。UniversalWindowsPlatformTargetDeviceHoIoLenSBuildType(D3DSDKLateStinstalledVisualStudioVersionNotinstalled11BuildandRunonLocalMachineCouldnotfindanysuppotedVisualStudioinstallations.CopyReferencesDebuggingUnityC#ProjectsDevelopmentBuildAutoconnectProfilerScriptsOnlyBuildCompressionMethodDefaultAlLearnaboutUnityCloudBuild匚BuildBuildAndRunJ当我用Unity查找时,2017.1.2f1没问题,2018.4.12F1错误,2018.3.0b7也出错,根据版本不同意味着什么?通过更新我使用的ViSUalStUdi。2017解决了该问题。我先尝试了更新,但可能已修复。如果你有相同的症状,请尝试*更新/修复,启动VisualStudio安装程序。4、忽略"ReferenceRewriterfoundsomeerrorswhilerunningwithcommand”构建MRTKv2时出现以下错误。参考重写器在运行命令"-target=TempStagingAreaDataManagedASSembly-CSharp.dll”时发现一些错误ConsoleaClearColhpsCl*ronPL.ErrorPuseEditor1''M.?8IReferencePewnterfoundsomeerrorswhilerunningwithcommand,-target=Temp'StagingAreaxDataXManaged.AsseError:heldSyftem.Numencs.Vector3Windows.PetCeption.PeopIe.HandMeshVertex:Pos«t)ondoesntexistintarget(Referencerewter:Error:eldSystem.Numerics.Vector3Windows.Perception1People1HandMeshvertexnPositjondeUnityEngine-DebugrLogEiTor(Object)1Referencerewnter:Error:eldSystem.Numencs.Vector3Windows.Perception.People.HandMeshVertex:PositiondeUnityEngine.Debug:LOgErrOr(ObjeCt)IReferencerewrrte:Error:fieldSystem.Numencs.Vector3Windows-Perception.People1HandMeshVertexiiNormaIdoUnityEngine.DebugcLogError(Object)QReferencerewnter:Etor:fieldSystem.NumencB-QuatemionWndows.Percepbon.PeopleJomtPose:OnentationdotUnityEngineQebUg:LogErrOr(Object)QReferencerewte:Error:eldSystem.Numenct.Vector3Windows.Percepton.PeopleJomtPose:Po«rtiondoesn'teUnityEngine.DebugiLogEiTor(Object)IReferencerewtet:Error:fieldSystem.Numerics.Vector3Windows.Perception.Spatial.SpabaIRay:0rigmdoesn'te>UnityEngine.Debug:LogError(Objed)QReferencerewrteError:fieldSystem.Numencs.Vector3Windows.Perception.Spatial.SpataIRay:directiondoen'lUnityEngine.Debu9:LogError(Object)ReferenceRewnterfoundsomeerrorswhilerunningwithcommand'-Urget*TempSUgngAeaDataManagedA*sembly-CShap.dll""-target三Temp'StagingAreaXDataXManagedMicrosoftMixedPeaIity.Toolkit.Service*.InputSystem.dl,-target三Temp.StagmgArea'DataManagedMicroioft-MixedReal(ty.Toolkit.Services.InputSimuIatJon.dll",-Urget=Temp'StagjngAreavDataYManaQedMicrosoft-MaedReaIity.Toolkit.Services.InputAnimation.dl-taget*TempStaQingAreakDataVManaged.Microsoft.MixedPeahty.Toolkit.Services.DiagnostiesSystem.dll'"-Urget-Temp.StagingAreaXDaUxManaged.Microtoft.MixedPeaIity.Toolkit-Servicef.CameraSystem.dl"-target三TernpStagmgAreaXDataXManagedMicrosoft-MixedReaIity.Toolkit.Services.BoundarySy5tem.dll"这似乎可以忽略。可以正常部署到HoIoLens05、关于设置MRTKV2.2的提示MRTKv2.2设置提示突然消失了。由于它显示在另一台PC上,这似乎是PC的问题。MRTKProjectConfiguratorApplyDefaultSettings?TheMixedRea