In one of my projects I explore the âScreenspace UIâ sample. But when I want to test it as local export or real build all fonts are missing.
The Unity shows these warning and errors:
"
Font texture for RobotoSlab-Regular is generated with dynamic set - this may lead to fonts having only the characters currently used in your project. If you want to provide dynamic text support you should change this setting in your font asset
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
Needle.Engine.Utils.FontsHelper:InternalGenerateRuntimeFont (UnityEngine.Font,UnityEngine.FontStyle,string,bool&,bool,object) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Utils/FontsHelper.cs:168)
Needle.Engine.Utils.FontsHelper:TryGenerateRuntimeFont (UnityEngine.Font,UnityEngine.FontStyle,string,bool,object) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Utils/FontsHelper.cs:34)
Needle.Engine.Gltf.GltfValueResolver:TryGetValue (Needle.Engine.IExportContext,object,System.Reflection.MemberInfo,object&) (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/GltfValueResolver.cs:190)
Needle.Engine.Serialization.WrappedValueResolver:GetValue (object) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Serialization/NeedleContractResolver.cs:244)
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter:CalculatePropertyValues (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContainerContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContract&,object&)
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter:SerializeObject (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonObjectContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContainerContract,Newtonsoft.Json.Serialization.JsonProperty)
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter:SerializeValue (Newtonsoft.Json.JsonWriter,object,Newtonsoft.Json.Serialization.JsonContract,Newtonsoft.Json.Serialization.JsonProperty,Newtonsoft.Json.Serialization.JsonContainerContract,Newtonsoft.Json.Serialization.JsonProperty)
Newtonsoft.Json.Serialization.JsonSerializerInternalWriter:Serialize (Newtonsoft.Json.JsonWriter,object,System.Type)
Newtonsoft.Json.JsonSerializer:SerializeInternal (Newtonsoft.Json.JsonWriter,object,System.Type)
Newtonsoft.Json.JsonSerializer:Serialize (Newtonsoft.Json.JsonWriter,object,System.Type)
Newtonsoft.Json.JsonConvert:SerializeObjectInternal (object,System.Type,Newtonsoft.Json.JsonSerializer)
Newtonsoft.Json.JsonConvert:SerializeObject (object,System.Type,Newtonsoft.Json.Formatting,Newtonsoft.Json.JsonSerializerSettings)
Newtonsoft.Json.JsonConvert:SerializeObject (object,Newtonsoft.Json.Formatting,Newtonsoft.Json.JsonSerializerSettings)
Needle.Engine.Serialization.NewtonsoftSerializer:Serialize (object) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Serialization/NewtonsoftSerializer.cs:21)
Needle.Engine.Gltf.UnityGltf.UnityGltf_NEEDLE_components_Extension:InternalSerialize (Needle.Engine.IExportContext,Needle.Engine.IGuidProvider,Needle.Engine.IValueResolver,System.Collections.Generic.IList1<UnityEngine.Component>) (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/UnityGltf/UnityGltf_NEEDLE_components_Extension.cs:93) Needle.Engine.Gltf.UnityGltf.UnityGltf_NEEDLE_components_Extension:OnAfterExport () (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/UnityGltf/UnityGltf_NEEDLE_components_Extension.cs:44) Needle.Engine.Gltf.UnityGltf.UnityGltfComponentHandler:OnAfterExport (Needle.Engine.Gltf.GltfExportContext) (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/UnityGltf/UnityGltfComponentHandler.cs:72) Needle.Engine.Gltf.UnityGltf.UnityGltfExportHandler:OnAfterExport (UnityGLTF.GLTFSceneExporter,GLTF.Schema.GLTFRoot) (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/UnityGltf/UnityGltfExporter.cs:332) UnityGLTF.ExportContext/ExportContextCallbacks:AfterSceneExport (UnityGLTF.GLTFSceneExporter,GLTF.Schema.GLTFRoot) (at ./Library/PackageCache/org.khronos.unitygltf/Runtime/Scripts/GLTFSceneExporter.cs:70) UnityGLTF.GLTFSceneExporter:SaveGLBToStream (System.IO.Stream,string) (at ./Library/PackageCache/org.khronos.unitygltf/Runtime/Scripts/GLTFSceneExporter.cs:749) UnityGLTF.GLTFSceneExporter:SaveGLB (string,string) (at ./Library/PackageCache/org.khronos.unitygltf/Runtime/Scripts/GLTFSceneExporter.cs:684) Needle.Engine.Utils.ExportUtils:ExportWithUnityGltf (UnityGLTF.GLTFSceneExporter,string,bool) (at ./Library/PackageCache/com.needle.engine-exporter/Common/Runtime/Utils/ExportUtils.cs:37) Needle.Engine.Gltf.UnityGltf.UnityGltfExportHandler:OnExport (UnityEngine.Transform,string,Needle.Engine.IExportContext) (at ./Library/PackageCache/com.needle.engine-exporter/Gltf/Editor/UnityGltf/UnityGltfExporter.cs:170) Needle.Engine.Components.GltfObject:Export (string,bool,Needle.Engine.IExportContext) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Runtime/Components/Export/GltfObject.cs:81) Needle.Engine.Core.Emitter.GltfEmitter:Run (UnityEngine.Component,Needle.Engine.Core.ExportContext) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Core/Emitter/GltfEmitter.cs:92) Needle.Engine.Core.Builder:ExportComponent (UnityEngine.GameObject,UnityEngine.Component,Needle.Engine.Core.ExportContext,Needle.Engine.Interfaces.IEmitter) (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Core/Builder.cs:743) Needle.Engine.Core.Builder/<Traverse>d__39:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Core/Builder.cs:709) System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1:Start<Needle.Engine.Core.Builder/d__39> (Needle.Engine.Core.Builder/d__39&)
Needle.Engine.Core.Builder:Traverse (UnityEngine.GameObject,Needle.Engine.Core.ExportContext,Needle.Engine.Interfaces.IEmitter)
Needle.Engine.Core.Builder/d__37:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Core/Builder.cs:680)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Error: Cannot find module â@jimp/jpegâ
Error: Cannot find module â@jimp/jpegâ
Failed to generate font files for RobotoSlab-Regular
UnityEngine.Debug:LogError (object)
Needle.Engine.Utils.FontsHelper/d__11:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Utils/FontsHelper.cs:323)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult (bool)
Needle.Engine.Utils.ProcessHelper/d__4:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Common/Runtime/Utils/ProcessHelper.cs:274)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Failed to generate font files for Arial
UnityEngine.Debug:LogError (object)
Needle.Engine.Utils.FontsHelper/d__11:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Core/Editor/Utils/FontsHelper.cs:323)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult (bool)
Needle.Engine.Utils.ProcessHelper/d__4:MoveNext () (at ./Library/PackageCache/com.needle.engine-exporter/Common/Runtime/Utils/ProcessHelper.cs:274)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
WARN: Could not validate image type for âimage/exrâ
"
The interesting thing is. I have the problem only on my Office-PC, but NOT on my HomeOffce-PC.
Both share the same project via repository. Same version of tools. Node.js and ktx same. I even copy the full Unity Library from my HomeOffice-PC (Where itâs fine) to my Office-PC without success.
Any ideas where the problem could be?