Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.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# DllNotFoundException:TMPro_插件,在linux上使用TextMesh Pro_C#_Linux_Unity3d_Text_Fonts - Fatal编程技术网

C# DllNotFoundException:TMPro_插件,在linux上使用TextMesh Pro

C# DllNotFoundException:TMPro_插件,在linux上使用TextMesh Pro,c#,linux,unity3d,text,fonts,C#,Linux,Unity3d,Text,Fonts,我正在尝试在Unity 2018.1.6f1 Fedora 27上运行TextMesh Pro 1.2.4的字体资产创建者。我有以下错误: 我听说Linux上还不支持TextMesh。这仍然是真的吗 DllNotFoundException:TMPro_插件 TMPro.EditorUtilities.TMPro_fontasetCreatorWindow.DrawControls()(位于 /root/.config/unity3d/cache/packages/packages.unity.

我正在尝试在Unity 2018.1.6f1 Fedora 27上运行TextMesh Pro 1.2.4的字体资产创建者。我有以下错误:

我听说Linux上还不支持TextMesh。这仍然是真的吗

DllNotFoundException:TMPro_插件 TMPro.EditorUtilities.TMPro_fontasetCreatorWindow.DrawControls()(位于 /root/.config/unity3d/cache/packages/packages.unity.com/com.unity。textmeshpro@1.2.4/Scripts/Editor/TMPro_fontasetcreatorwindow.cs:704) TMPro.EditorUtilities.TMPro_fontasetCreatorWindow.OnGUI()(位于 /root/.config/unity3d/cache/packages/packages.unity.com/com.unity。textmeshpro@1.2.4/Scripts/Editor/TMPro_fontasetcreatorwindow.cs:266) System.Reflection.MonMethod.Invoke(System.Object对象, System.Reflection.BindingFlags调用ATTR,System.Reflection.Binder binder,System.Object[]参数,System.Globalization.CultureInfo 文化)(at:0)重新显示为 TargetInvocationException:的目标已引发异常 召唤。System.Reflection.MonMethod.Invoke(System.Object对象, System.Reflection.BindingFlags调用ATTR,System.Reflection.Binder binder,System.Object[]参数,System.Globalization.CultureInfo 文化(网址:0) System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[]参数)(位于:0) UnityEdit.HostView.Invoke(System.String方法名,System.Object (在 /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:291) UnityEdit.HostView.Invoke(System.String方法名)(位于 /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:284) UnityEdit.HostView.InvokeOnGUI(UnityEngine.Rect onGUIPosition)(位于 /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:257) UnityEditor.DockArea.OldOnGUI()(位于 /home/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:386) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:234) UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:372) UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:356) UnityEngine.Experimental.UIElements.EventDispatcher.DispatchEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel面板)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:215) UnityEngine.Experimental.UIElements.UIElementSutibility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/uielementsutibility.cs:224) UnityEngine.Experimental.UIElements.UIElementSutibility.ProcessEvent (System.Int32 instanceID,System.IntPtr nativeEventPtr)(位于 /home/builduser/buildslave/unity/build/Modules/UIElements/uielementsutibility.cs:77) UnityEngine.GUIUtility.ProcessEvent(System.Int32 instanceID, System.IntPtr nativeEventPtr)(位于 /home/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:184)

llNotFoundException:TMPro_插件 TMPro.EditorUtilities.TMPro_FontAssetCreatorWindow.OnDisable()(位于 /root/.config/unity3d/cache/packages/packages.unity.com/com.unity。textmeshpro@1.2.4/Scripts/Editor/TMPro_fontasetcreatorwindow.cs:204) gui实用程序:ProcessEvent(Int32,IntPtr)


生成文本所需的代码的本机端在Linux上还不可用。插件本身应该在构建的运行时工作,但Linux不支持它的编辑器工具。编辑器工具仅在Windows和Mac上受支持

缺乏支持的最初原因是,只有少数人在使用Unity封装游戏时使用Linux。此外,Unity Editor本身并不正式支持Linux。无论他们对它有什么样的支持,它仍然处于实验模式,并且有许多问题使得它在这一点上不值得使用


由于TextMesh Pro现在由Unity购买,Linux很可能会得到支持。您应该等到Unity最终将其与Unity集成,也许他们会添加对Linux的支持。现在,我认为您应该提交一份bug报告,提醒Unity这个问题仍然存在,然后使用
Text
组件,直到他们修复它。如果您仍然希望使用TextMesh Pro,一种解决方法是使用VMware Workstation在Linux上运行Windows或MacOS,然后您可以使用它们创建文本资产,并将其作为包导出和导入到Linux项目中

看在上帝的份上,为什么不投票呢。互联网上对此没有答案,我想我的问题的答案将帮助许多使用linux的Unity程序员。为什么不写一篇评论,让我知道我在哪里犯了错误?请使用美丽的文字,以显示例外情况-也使用括号的代码。如果没有良好的表达和语法,您可能会收到反对票。顺便说一句,你的问题需要回答-没问题。谢谢你的建设性评论。我是新的堆栈网站。希望有人知道答案。你有试着建立这个项目吗?TextMeshPro应该在LinuxPro上运行。当我尝试在字体资源创建者下为导入的字体生成字体图集时,控制台上会出现错误。所以我甚至不能用我想要的字体来创建一个文本。非常感谢程序员的澄清!我将使用虚拟机并按照你的建议去做。我也很难为linux安装mono编辑器,但最终还是成功了。您建议在VM下使用Unity的windows版本吗?我不建议您使用VM开发整个游戏,因为您可能会遇到由VM而不是Unity或您的代码引起的问题。也为