Questions tagged [text]

You're reading text right now. Characters representing primarily letters and numbers, usually arranged to present a message.

Filter by
Sorted by
Tagged with
1
vote
1answer
663 views

How to get the position of individual characters in TextMeshPro (Unity)?

I am making a typing game. There are words falling down what the user have to type, before they can call the OnBecameInvisible() event. When the user types a character I want to apply a force and a ...
1
vote
1answer
525 views

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

I have .txt file containing all the English words separated by line breaks. I want to turn them to a string[] so I can easily pick a random one from them. The way I would do that in normal C# is ...
3
votes
0answers
489 views

Find Max Line Count for Unity UI.Text

I'm trying to determine the max line count of a UI.Text with VerticalOverflow set to truncate...
0
votes
0answers
102 views

Make Unity Text Area to act like a logger

I'm trying to create a text area in Unity using UI.Text that contains multi-line text which should act like a log view, i.e the text area ...
2
votes
1answer
97 views

Why am I hitting a small character limit when rendering with SDL_TTF?

I'm making a text based game using SDL2 and SDL_TTF. I just started working with TTF, and I've noticed there is some kind of character limit regarding how much text you can render at a time! I can ...
0
votes
3answers
70 views

How to delete a score after collecting all collectibles

I'm making a small game for my English class, and in the beginning, you have to collect rocks. I already have the code for counting how many rocks have been picked up, and the GUI to display while the ...
1
vote
0answers
65 views

XNA Displaying/Drawing from a text file [closed]

I wrote this code in the Load Content of XNA 4.0 for reading the star map, after actually adding it to my content, and I have no idea how to write/draw it onto my application, any suggestions? ...
0
votes
2answers
50 views

Tag object in map in Unreal

Is there a clean way in unreal to place text in the map to tag different buildings and areas for developper that can easily be turned on/off for all the tags in the map?
0
votes
1answer
199 views

C++ Freetype advance X problem

I'm currently working on a font-rendering system for my OpenGL based engine. I sure got something to work, but the only thing I still have problems with, is the horizontal advance! This is what it ...
1
vote
2answers
96 views

Making quick time events in my text adventure more noticable

I'm making a post-apocalyptic text adventure in Unity. One of the gameplay features I've added is a quick time events on certain parts. Whether a part is a quick time event is defined inside the story ...
-2
votes
1answer
167 views

Problem using SDL_TTF

I'm trying to create a 2D game, and I'm trying to use a layered drawing model. First I draw the background, then the world, then the constructs (buildings etc.), then the objects (NPC's etc.) and ...
3
votes
1answer
90 views

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

I have 2D UI layout with multiple text boxes over the canvas, I need to easily be able to see where the Rect boxes for each are positioned, so that I can see where the safe areas are for placing ...
1
vote
1answer
535 views

Is it possible to make an input field with non selectable text in Unity?

Can I make an input field with non selectable text in Unity?
0
votes
3answers
392 views

Alternative to canvases (unity)?

I have a Unity project which requires a bunch of Canvases and, surprise surprise, they're creating a lot of lag. I've already turned off the graphics raycaster for every single one, but they still ...
0
votes
1answer
1k views

Unity text component not updating text properly

It was worked fine previously, but after some point, it's not working. This is the code. It's not a pseudo code, actual code in game: ...
0
votes
1answer
2k views

How to align text dynamically inside a rectangle with Phaser JS

I am just starting to learn the Phaser JS framework with my first game. I did not managed to find a way how i can align text inside a rectangle element dynamically without specific coordinates. Here ...
0
votes
1answer
213 views

Unity 2d text not rendered properly in scene mode

I am a beginner in Unity and trying to add a text box to my scene. I have done this before and was able to do it properly. Problem But recently I created a new project, added a text element to it, ...
3
votes
1answer
3k views

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

I'm trying a solution in MonoGame to create levels from a .txt file, but the pipeline tool fails when trying to build the Content.mgcb correctly: ❌ Skipping HighResolutionContent\Backgrounds\...
0
votes
1answer
111 views

Problems with the Unity text field

Let say I have this list and currently there are three animals inside the list. These names below are displayed on the text field in the scene. Cat Bird Goat If there is a new animal is added to ...
1
vote
1answer
239 views

How to procedurally generate materials with text in Unity

I'm designing a virtual library that dynamically loads sections of a database and need to display text on the books. As such, I need a runtime interface to somehow load book titles and author and put ...
1
vote
2answers
249 views

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

I am getting the exception "NullReferenceException: Object reference not set to an instance of an object" while changing text of a user interface text field, even though the text changes successfully, ...
3
votes
2answers
2k views

What is the most efficient way to render a textbox in C++ SDL2?

I'm a beginner in sdl2 and I'm trying to make a window, with a gui (where you can move a sprite around) and a CLI (a textbox where the game can return some text and the user can insert commands). Let'...
1
vote
1answer
1k views

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

I have a section in my scene where I have an image on a layer, as a child of this layer I have a load of text objects. I need the ability to zoom in and out of the image (it's a technical drawing, so ...
1
vote
2answers
1k views

Unity: Change Text with Time (Text Flashes)

I am trying to display instructions within the Unity game. The idea is to have the instructions appear over time. For example, "instruction 1" then wait 5 seconds and show "instruction 2" instead of ...
0
votes
1answer
279 views

How to make a text box where text “types” smoothly

I want to create a textbox that behaves like most textboxes seen in other games where the text appears gradually. So far this has been my attempt at it but unfortunately, the text appears very ...
0
votes
2answers
299 views

Retrieving text from a text file and inputting it to a Text component

I had a suspicion I would come across this problem. I know how to write to the file and read from it, but the following snippet isn't allowing me to input it into a text component. ...
0
votes
1answer
63 views

Large amounts of strings to be used, but how to store them?

This is a question I've been meaning to ask. I have thought about it for a little bit and have a few ideas, but I'm not sure which is most secure, and will give me the most functionality with the most ...
0
votes
1answer
312 views

InputField text to string variables of a struct

So, here's my issue. I have a class that contains a struct. This struct contains about 7 different string variables. I can set the values of these variables via a constructor that takes the struct ...
0
votes
1answer
82 views

MonoGame - render target drawn below other sprites and in the wrong location

This seems like a simple thing but still doesn't work. So I'm trying to draw a scrollable log window (not scrolling yet) by using a RenderTarget2D. There are several bugs: The text should be drawn ...
0
votes
1answer
200 views

UNITY Prevent 3D Text Render Trough All Object Without Shader

im tired of those answer i found trough search engine that just keep saying " the trick is to modify the shader " without thinking because they want to gain reputation , in my case , i have 2 3D text ,...
0
votes
3answers
330 views

Unity - Easier way to resize group of buttons to the same size

I have a canvas with buttons, with a script attached to each button. This script creates an array for buttons and resizes every button to the same size as the longest one in that array (the button ...
3
votes
2answers
192 views

Why are symbols placed in front of UI texts?

I've been to play testing sessions from both large and indie studios, and I often see a symbol in front of UI texts during development builds. It most commonly appear in buttons texts, but can also be ...
1
vote
0answers
47 views

What would be the things to consider translating a game? [closed]

I suppose this is not rather common subject to bring on at this site, as it seems that most of them are related to programming; however, I wanted to ask you what would be the things to consider when ...
2
votes
3answers
3k views

UI Text in Unity World Space Canvas

I've been struggling with the text for my game labels, as can be seen below. Unity has even included it as an official bug, although no timeline is set to fix it. The text just looks poor. I've seen ...
0
votes
1answer
1k views

How is text/scripts/dialogue stored and accessed in games?

For large, complex games, I imagine that text descriptions, dialogue lines, etc, are organized in some sort of database, and not actually hardcoded into the source. Are there any conventions on how ...
0
votes
0answers
28 views

Render text and still have it interractive with minimum effort with hit-testing?

The background of the situation: I need to render text. Text will be moving aroud the screen and user will have ability to interact with it by erasing with a finger, shifting the order of the words, ...
0
votes
2answers
229 views

MonoGame rendering text with black boxes?

I have a UI manager that renders a background image and some images and buttons using BlendState.AlphaBlend. This works as intended. However, when I try and draw ...
0
votes
1answer
5k views

How to display text for 3 seconds in pygame

I am trying to print "You Crashed" when car hits wall(or blocks) for 3 seconds and then again start game loop. I tried using time.sleep(3) but it's not working. ...
1
vote
0answers
150 views

Efficient way of training a chabot AI

I am currently working on a chatbot game using Python 2.7.10. I use the Chatterbot library. This library seems to do all I need but the training data (or corpora) are very very limited. I haven't ...
0
votes
2answers
539 views

Anchored Unity text …not anchoring!

I've added some text to a unity UI and set both the achor and pivot to the top right corner as shown here: When I start this in debug in unity the text looks fine: What's weird is that when I build ...
0
votes
1answer
756 views

Phaser: show text when overlap sprites

I am trying to work out a way to add a text to the top left corner of the viewport when two of my sprites overlap. One of them is a item and the other is my character. I can already detect for overlap ...
-1
votes
1answer
686 views

How do I make Text Mesh appear five seconds later and disappear from the scene in unity3d [duplicate]

I have a text mesh in my scene. I don't want the test to show right when the scene starts . I want to text to show up in the scene five or ten seconds later on the screen and than the text disappear ...
3
votes
1answer
575 views

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

Suppose mystring is a string variable (whose value changes over time) and that myIcon is a texture or sprite of known dimension, ...
2
votes
2answers
440 views

SFML: Optimizing sf::Text?

I've been noticing that using multiple sf::Text objects has a huge impact on performance. The difference between using 1 or 4 sf::Text objects can result in almost a 40FPS drop (From 120 to 80). <...
0
votes
1answer
2k views

Display Rich Text in a TextMeshProUGUI component

I am rading a text to be displayed in a Text UI from an asset using the standard commands Resources.Load<TextAsset>("nameOfMyTextAsset"); The text is a ....
3
votes
1answer
889 views

Print string letter by letter in UI Text

i'm trying to print a string letter by letter for UI Text of Unity. With each click of a button, the Stampa function, must print a letter. Up to this point everything is working perfectly. But if I ...
3
votes
0answers
350 views

Unity 5.3.5 - Blurry UI text after switching canvasses - until text is refreshed by turning visibility off/on or changing resolution

I have multiple scenes in my project where the canvas are switched between, each canvas having UI text included on it. The project was originally created in version 5.0 and I have just updated to ...
2
votes
1answer
8k views

C# OpenTK Text rendering

I've been looking everywhere for a solution on how to render/draw text for my 2D OpenTK-based game. Been trying quite a few QuickFont ones without success (either a AccessViolation exception or text ...
1
vote
3answers
11k views

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

I know this question has been asked and asked but none of the topics i visited gave me an answer. I'm making a game programmed in c# where you control a boat and i want my UI to appear smoothly by ...
0
votes
1answer
714 views

In gamemaker studio, how do I make text boxes?

How to make text boxes in gamemaker studio?