Ошибки TextMe sh Pro при запуске Unity в Debian 10 GNU / Linux - PullRequest
0 голосов
/ 08 апреля 2020

Я начал пробовать версию Unity GNU / Linux. В моей работе появился проект, написанный в Unity Editor версии 5.6.6f2 для Windows. Я мог бы открыть проект в Unity Editor версии 2019.3.8f1 после того, как Unit Hub преобразует его для этой более новой версии.

Сейчас я получаю серию ошибок при сборке. И многие из них связаны с TextMe sh Pro Asset в скриптах, генерируемых во время сборки. Как и

Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAsset.cs(405,34): error CS0029: Cannot implicitly convert type 'UnityEngine.TextCore.FaceInfo' to 'TMPro.FaceInfo'
Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAssetUtilities.cs(302,82): error CS1061: 'FaceInfo' does not contain a definition for 'pointSize' and no accessible extension method 'pointSize' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAssetUtilities.cs(344,82): error CS1061: 'FaceInfo' does not contain a definition for 'pointSize' and no accessible extension method 'pointSize' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAsset.cs(612,84): error CS1061: 'FaceInfo' does not contain a definition for 'tabWidth' and no accessible extension method 'tabWidth' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAsset.cs(649,28): error CS1061: 'FaceInfo' does not contain a definition for 'capLine' and no accessible extension method 'capLine' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_FontAsset.cs(652,28): error CS1061: 'FaceInfo' does not contain a definition for 'capLine' and no accessible extension method 'capLine' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)

Есть файл журнала Logs/Packages-Update.log, который, как я полагаю, связан с обновлениями, сделанными при преобразовании проекта из версии 5.6.6f2 в версию 2019.3.8f1. Содержимое этого файла:

Packages were changed.
Update Mode: resetToDefaultDependencies

The following packages were added:
  com.unity.collab-proxy@1.2.16
  com.unity.ide.rider@1.1.4
  com.unity.ide.vscode@1.1.4
  com.unity.modules.ai@1.0.0
  com.unity.modules.androidjni@1.0.0
  com.unity.modules.animation@1.0.0
  com.unity.modules.assetbundle@1.0.0
  com.unity.modules.audio@1.0.0
  com.unity.modules.cloth@1.0.0
  com.unity.modules.director@1.0.0
  com.unity.modules.imageconversion@1.0.0
  com.unity.modules.imgui@1.0.0
  com.unity.modules.jsonserialize@1.0.0
  com.unity.modules.particlesystem@1.0.0
  com.unity.modules.physics@1.0.0
  com.unity.modules.physics2d@1.0.0
  com.unity.modules.screencapture@1.0.0
  com.unity.modules.terrain@1.0.0
  com.unity.modules.terrainphysics@1.0.0
  com.unity.modules.tilemap@1.0.0
  com.unity.modules.ui@1.0.0
  com.unity.modules.uielements@1.0.0
  com.unity.modules.umbra@1.0.0
  com.unity.modules.unityanalytics@1.0.0
  com.unity.modules.unitywebrequest@1.0.0
  com.unity.modules.unitywebrequestassetbundle@1.0.0
  com.unity.modules.unitywebrequestaudio@1.0.0
  com.unity.modules.unitywebrequesttexture@1.0.0
  com.unity.modules.unitywebrequestwww@1.0.0
  com.unity.modules.vehicles@1.0.0
  com.unity.modules.video@1.0.0
  com.unity.modules.vr@1.0.0
  com.unity.modules.wind@1.0.0
  com.unity.modules.xr@1.0.0
  com.unity.test-framework@1.1.13
  com.unity.textmeshpro@2.0.1
  com.unity.timeline@1.2.14
  com.unity.ugui@1.0.0

См. Строчку com.unity.textmeshpro@2.0.1.

Я совершенно новичок в Unity и не использую Windows. Поэтому мне интересно, имеет ли это что-то, связанное со сценариями C# (например, библиотеки, которые я должен установить в Debian для правильной компиляции проекта), или если ошибки указаны c для TextMe sh Pro asset et c.

Если у кого-то возникла ошибка такого типа или могут дать мне советы, как заставить Unity работать в среде Debian GNU / Linux ...

...