Text is not rendering
Tested in custom and sample scenes
Needle Engine 4.2.5
Tested on:
- Unity 2022.3.38f1
- Unity 6 6000.0.30f1
Text is not rendering
Tested in custom and sample scenes
Needle Engine 4.2.5
Tested on:
Hello! It appears that you are experiencing issues with text not rendering in Needle Engine (version 4.2.5) while using Unity (versions 2022.3.38f1 and 6 6000.0.30f1).
Here are some troubleshooting steps to resolve text rendering issues:
Component Check: Ensure you are using the UI/Legacy/Text
component instead of the TextMeshPro - Text
component, as the latter may not be supported by Needle Engine (see faq).
Valid Size for Text: Make sure that the dimensions for your text elements are set correctly. If the size is 0,0, the text might not render properly. Make sure to set a fallback width and height if needed (see the documentation).
Debug Logging: Utilize debug logs to output the options used for creating text objects in your scripts to ensure everything is set up as intended (see the documentation).
Scene Setup: Check the setup of your scene to ensure that the camera and lighting settings are correct, as improper settings can prevent UI elements from being rendered (see faq) (see releases).
Update: If possible, consider updating to a newer version of Needle Engine, as recent updates may include fixes for text rendering issues. Check the changelog related to UI and text (see releases) (see releases).
If you can provide more details about your scene setup or any specific code snippets you’re working with, I can help further troubleshoot!
1 replies left - Get a PRO license for more AI replies.
thread_4yXB3lnLOVbQJZ49BKVcfaUI
Reply to this message to continue the conversation
Hi, can you check your log in Unity if there’s any log regarding generating the text atlas?
And are you using the default Arial or a custom font?
I too experienced the same problem with a custom font yesterday. Will check the logs.
Ok so in my case I had a single Roboto-bold.ttf in my Assets but the font generator threw some warnings about linked weight fonts: Turns out the com.unity.searcher package includes all Roboto weights as Editor-only assets and my Roboto-bold.ttf automatically had the other weights linked. Maybe an issue with the stock font importer.
As a quick workaround I just imported the other weights as regular assets into my project and now font atlas generation worked just fine.
What warnings did you get there?
The font file being editor only should not make a difference but if the font generator can not find the asset it will not be able to generate the texture atlas for the style.
Yep, it looked relative to my asset’s path:
Could not find font asset for style Regular at Assets/Roboto-Regular.ttf
The references in the inspector lead to the assets inside the com.unity.searcher package. Guess the path is just not put together correctly then.
Ah good to know. Thanks, I’ll create an issue for that to try to repro and fix
Can you try going to the Needle Engine Settings and click the “Delete npm cache” button at the bottom in the Troubleshooting section?