Skip to main content
8 votes
Accepted

Web build not respecting Monospace SystemFont for Godot Label

Currently SystemFont is not supported on web exports. I quote the documentation: Note: This class is implemented on iOS, Linux, macOS and Windows, on other ...
Theraot's user avatar
  • 27.3k
7 votes

UNITY : I want to make my UI text fade in after 5 seconds

Here is a rather simple extension class that you can use. ...
Uri Popov's user avatar
  • 3,027
7 votes
Accepted

C# OpenTK Text rendering

There's nothing particularly special in how font rendering is handled in OpenTK. OpenTK - among other things - contains an OpenGL wrapper. And as such any techniques you'd use to render text in ...
JBeurer's user avatar
  • 467
7 votes
Accepted

Completely Pixelated Font in JavaScript Canvas?

In the css, you need to disable font smoothing for canvas: canvas{ font-smooth: never; -webkit-font-smoothing : none; }
mushrombrother.jpg's user avatar
7 votes
Accepted

How to integrate images into text lines in Unity?

The regular Text component unfortunately can't do that, at least not on a UI canvas and without some nasty hacks. But TextMeshPro can. I really recommend using TextMeshPro over the classic Text ...
Philipp's user avatar
  • 120k
5 votes
Accepted

Why are symbols placed in front of UI texts?

These are pre-localized strings, most likely. For localization, there will be a primary identifier (like $Spells) that is used to look-up the correct text in a big ...
Sean Middleditch's user avatar
5 votes
Accepted

Why would I receive a NullReferenceException when the object is clearly set, and still works?

I have ran into this problem more often than I care to remember. First and foremost, there is no NullReferenceException in the script associated with "emptyTest". ...
Gnemlock's user avatar
  • 5,273
4 votes

Insert 3d text to the front face of a cube GameObject

I think understand this question well enough to answer it and a year old (old questions deserve some love too). Simply adding the TextMesh component to the cube is insufficient, as the text mesh has ...
Draco18s no longer trusts SE's user avatar
4 votes

UNITY : I want to make my UI text fade in after 5 seconds

Another approach, non-programmatically: Add animator component to your Text element. Create an animator asset for it, or: Select your text and Ctrl+6. In the opened window, click 'Create animation'...
PaulD's user avatar
  • 801
4 votes
Accepted

Why Unity3D 2018 UI looks bad and very sharpy?

We just need to change Scale and layout to 100% in windows setting panel . And in advanced scaling setting I turn on "Let Windows try to fix apps so they're not blurry" . After that Unity UI problem ...
iman_sh's user avatar
  • 175
3 votes
Accepted

Unity 5 - Manually zooming/scaling in and out of an image with a text layer while still retaining text sharpness when zoomed?

I've dealt with this before, and the simplest solution (which is also kind of a hack, so beware) was to scale the text transforms by the inverse of the maximum zoom, and multiply their font size by ...
Victor T.'s user avatar
  • 1,381
3 votes
Accepted

How to make a text box where text "types" smoothly

WaitForSeconds isn't accurate enough for this. Here's a better way: ...
lilotop's user avatar
  • 604
3 votes

How can I use ImGui to render simple text instead of using stb_truetype directly?

From the GitHub issue you opened and the ImgUi FAQ: Create a dummy window with NoTitleBar|NoResize|NoMove|NoScrollbar|NoSavedSettings|NoInputs, then you can ...
Felipe Cortez's user avatar
3 votes

UI Text Won't Change Color in Unity 5

I got stuck on this same thing in this tutorial. My fix was to assign the font material to the text component's material directly underneath where you change it red.
Jared Browne's user avatar
3 votes

MonoGame "couldn't find a default importer" for .txt file?

You're getting this message because the pipeline doesn't contain a content importer for a .txt file. Plain-text files generally don't require any special processing, and don't need to be converted to ...
Vassalware's user avatar
3 votes

View individual UI Rect boxes when multiple UI elements are selected?

There's no setting for this in Unity, however, a custom script can do something like this. Here's a complete script I wrote, you'll just need to add it to any object in the scene. It will run in edit ...
House's user avatar
  • 73.3k
3 votes
Accepted

How to make a string[] from the words of a file in Unity?

You can split a string into substrings with String.Split. When you don't have any whitepsaces in that textfile but line breaks (as in no words with spaces in them) ...
Philipp's user avatar
  • 120k
3 votes
Accepted

Reading a text file and changing each digit into a value inside an array c#

With int.Parse(SR.ReadLine()) you are trying to convert the whole input line (consisting of 300 digits) into one single int. ...
Olivier Jacot-Descombes's user avatar
3 votes
Accepted

How do I port a game which uses print-output to pygame font rendering with the least amount of work?

This sounds like a pretty classic abstraction problem, general to all programming and not just games. I'll provide some explanation in terms of a text game though to suit your question. Absolutely ...
Sean Middleditch's user avatar
3 votes
Accepted

Do I have to re-assign localized text every time the game loads?

Localization systems I've seen generally work in a "pull" approach, rather than a "push". ie. instead of pushing out a change to all text in the game when the player changes the language, instead ...
DMGregory's user avatar
  • 135k
3 votes

Godot: What options are there for removing the filtering or anti-aliasing from text

You can customize your image import setting in godot 3.0+. Here is how from the Godot documentation : Godot Docs 3.0+ : Importing Images In the basic UI, when you select an image you can change tab ...
Valrog's user avatar
  • 131
3 votes

Make a variable go down as another goes up?

There are many ways to do things like this based entirely on context. One example would be to have 2 values have the same values (say 10 to 20) and doing it like a scale where +5 on one would result ...
JansenSensei's user avatar
3 votes
Accepted

Unity UI - Value of text input (assigned with OnChange event) is always "one letter behind"

Misleading variable names strike again. searchInput, despite "input" in its name, isn't pointing to your input field that's receiving the new text. It's the ...
DMGregory's user avatar
  • 135k
3 votes

Unity text is very blurry. How can I fix it?

Make certain your UI Text object is not inadvertently upscaled. This can happen any number of ways. In my experience, the most common occurrence of this happening is due to generating UI objects from ...
Acme Nerd Games's user avatar
2 votes

In gamemaker studio, how do I make text boxes?

There are the built-in functions to show textboxes to the user: Read strings or integer from the user: get_string(...); (for debug purpose only) ...
liggiorgio's user avatar
  • 4,876
2 votes

Using a script to draw an icon next to (i.e. inline with) a text label in Unity

Use manual anchoring instead of using layout groups if it's not a must. Keep both logo and text UI objects in an empty UI object. Manually anchor both objects as your intended layout. They are ...
Sourav Paul Roman's user avatar
2 votes

UI Text in Unity World Space Canvas

I found these settings to make my world space text look crisp. Set the Dynamic Pixels Per Unit on the canvas scaler to 1. Set the Reference Pixels Per Unity on the canvas scaler to 100. Use a font ...
Uri Popov's user avatar
  • 3,027
2 votes

UNITY : I want to make my UI text fade in after 5 seconds

You can use a coroutine to change the alpha. You'd attach a CanvasGroup component to the UI's container object. Then adjust the alpha like so: ...
House's user avatar
  • 73.3k
2 votes
Accepted

InputField text to string variables of a struct

You have a single field that is the first InputField found by FindObjectOfType. Apparently ...
Theraot's user avatar
  • 27.3k

Only top scored, non community-wiki answers of a minimum length are eligible