Unity 2019.4.32f1+Ultraleap 开发遇到的问题

Unity 打包设置(Palyer Setting )

Scripting Backend 改成Mono打包无法显示手掌;

Scripting Backend 改成IL2CPP打包可以显示手掌

  • Minimum API Level - Android 10.0
  • Target API Level - Android 10.0
  • Scripting Backend - IL2CPP
  • Target Architecture - ARM64
  • Allow 'unsafe' Code - true

一、打包报错

报错内容如下所示

ArgumentException: The Assembly Mono.WebBrowser is referenced by System.Windows.Forms ('Assets/Plugins/System.Windows.Forms.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <fa8b92cbe0d2458f9e39cfc7bcd5d6cb>:0)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <fa8b92cbe0d2458f9e39cfc7bcd5d6cb>:0)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <fa8b92cbe0d2458f9e39cfc7bcd5d6cb>:0)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <fa8b92cbe0d2458f9e39cfc7bcd5d6cb>:0)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
Unity.XR.PXR.Editor.PXR_SDKBuildCheck:OnBuild(BuildPlayerOptions) (at G:/SVNProjecs/UnityXR_v2.0.2_B41/Editor/PXR_SDKBuildCheck.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

解决方法:【参考链接:Unity2018引用System.Windows.Forms.dll发布报错 - 灰信网(软件开发博客聚合)

1.删除掉工程中的System.Windows.Forms.dll等文件
2.切换 .NET Standard 2.0 ->.NET 4.x

Unity开发参考链接:

Pico Unity XR SDK 官方链接:2 SDK配置说明 — Unity XR SDK 0.1 文档

Ultraleap Unity API 官方链接:Getting Started - Ultraleap documentation

扫描二维码关注公众号,回复: 17211204 查看本文章

   

猜你喜欢

转载自blog.csdn.net/U3DCoder/article/details/122405463
今日推荐