Text in scoreboard with new font not show

I have used the text font that is used in the course. I have followed the steps, but it doesn’t show anything.
But if I use the default font (Liberation Sans), show only red squares.
I think the problem may be related to what I have active HDRP. And the render not work properly.

Any idea?

Thanks in advance.

Hi arodrigu,

What text component do you use? Text or TextMeshPro Text?

Unfortunately, I cannot find a similar problem online, and since I don’t know anything else about your project, I’m afraid I don’t have any suggestions for you. Have you already tried to look for a similar problem as yours via a search engine?

[Edit:] I’ve just found a problem with pink squares. Somebody suggestes a potential solution.

Hi Nina,
the text component I use is TextMeshPro.
Thanks for your help. I’m going to try the solution used for pink squares.

Regards

Hi again, Nina.Finally I solved the red squares problem. Now with the font: LiberationSans SDF works.
I solved simply reimporting the samples in package HDRP


I downloaded venus_rising text font. I generated the Font Asset.


But, don’t work with TextMeshPro component.

I don’t know if you have to select any material for it to be rendered. (Material Preset)

Thanks!

According to your screenshot, the Text component uses this font asset:

image

Have you already to assign the font asset you generated earlier?

I have tried to assign it, but it won’t let me.
That’s ok.


But if I select Venus Rising:

Not change.
I have seen an error:

I’m tried to assign a font to the asset:

Not work.
I’m tried to generate again with the font asset creator:
But does not generate anything.

Your last screenshot shows the problem.

First of all, open the font with the Character Map, which is already installed. Are there any glyphs? If so, select one of the glyphs and check the bottom left corner of the window to see its Unicode code. Maybe the selected Character Set in the Font Asset Creator does not match the actual position of the glpyhs in the font.

The Font Asset Creator says the following:

image

The field below is empty, so it might be that this is the reason for the empty character set in your font material. Select another Character Set value that matches your font. Alternatively, add the character sequence manually. The result must look like your second screenshot in this post.

Thanks. I’m going to investigate it, but that could be it.

Hi. Finally do the steps with Character Map and I create the font asset:


But in the ScoreBoard, when I select the Venus Rising font

Still not getting the change:

Drag and drop the font assets onto the Font Asset field. It still showns LiberationSans SDF.

By the way, are you able to see settings such as the font size in the TMP Text (UI) component? The component looks a bit odd to me, and I don’t know if Unity changed the design or if there is indeed something wrong with the component.

If you are not able to access the font size with the LiberationSans asset, which clearly works, the problem might be caused by the TMP package, not necessarily by the font asset you created. In that case, I would suggest to uninstall and reinstall the package. Or maybe check if there is an update for it.

Hi Nina. When I select LiberationSans asset, yes, I can access the font size:


But when I select Venus Rising, don’t show any settings in the TMP Text (UI) component (And don’t change the font’s name)

I see that the Venus Rising generate font has no material.

Did you drag and drop the new font asset into the Font Asset field? Or doesn’t that work? Unless I missed something, all screenshots you shared here show

image,

and none of them shows the field with ‘venus rising […]’.

If it does not work, there is either something wrong with the font asset, or there is a bug in the TMP package.

The right side of your last screenshot is not how the component is supposed to look. On the right side, there seems to be a scroll bar. Try to scroll down to see if the missing fields moved down. If there isn’t anything, there might be a bug in the TMP package or in Unity.

If you want to update, please make a backup of your project folder by duplicating it. Save the duplicated folder somewhere else, maybe on an USB stick. To save some free space, you could delete the Library and Temp folders in the backup folder. Then update, load your project (not the backup!), and open your scene.

If you want me to check your project, please duplicate your project. Open the duplicated project in Unity. Then remove all scenes and all assets such as the terrain and the spaceship and everything else that isn’t needed to recreate the problem. Then create a new empty scene with a game object and a TMP component. Test if the problem is still there. If it is still there, you may send me your zipped project. To do that, please fill out our form and send me your zipped project (without the Temp and Library folders)? Don’t forget to add a link to this thread.

When you are done, drop me a line here, so I can check our server.

Thanks Nina. I’m going to do what you tell me.

Hi Nina. Finally I have tried updating the TMP version, but I have the latest one. I have also installed the latest stable version of Unity (2022.3.30). But it still doesn’t work.
So, as you explain to me, I have created a copy, I have deleted everything, I have created a new scene with a GameObject and a TMP. Still not working. Finally I have sent you the project.

Thanks for sharing your project.

  1. Did you click the link I provided above? For some reason, your project ended up in our old list. Fortunately, it hasn’t been deleted yet.

  2. Unity often has got problems with non-ASCII characters such as á, à, ä, ö, and so on. The problems are not always noticeable but things suddenly stop working. For this reason, do not use any of those characters in folder names or filenames. It might be that Unity internally replaces those characters with, for example, �. In that case, your actual names do not match the names Unity internally uses anymore.

  3. I imported your project into Unity 6, regenerated the font asset, and successfully assigned it. The shader was broken (probably renamed), so I selected another one. I also moved the font to a new folder. Do not save your own assets in a package folder unless the manual says so. Naming your own folders after packages could break things.

Hi Nina. I tell you the points.
1.- Yes, I click the link you provided. But it does not work. In order not to ask again, I did a search on the forum to see if there was another link. That’s why it went to an old list.
2.- I will keep it in mind for future projects. I confess that initially I named the project as in the course, but since the rendering stopped working, I created the project again several times. And in the end out of desperation I gave it that name.
3.- I save the generated asset in the TextMeshPro folder because it was as explained in the video.

I just followed the steps you told me and I finally got it to display the text.

Thanks very much.!!!

Awesome! I’m glad it’s finally working. Actually, I did the same as you, so I thought that the non-English characters or the ‘wrong’ folder name might have caused the problem in your case. :slight_smile:

Thanks for letting me know. I think there was an issue with the formatting of the link in my answer. If I share the link again, I’ll double check that it works. :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms