Skip to main content

All Questions

Tagged with
0 votes
1 answer
29 views

How to disable non-intended user input in the terminal C#

When i write a infinite loop that doesn't have any behaviour on its body, the user still have the possibility to write text at it, even without calling any input function: Note: I'm using Linux, ...
Marvin Marjan's user avatar
0 votes
0 answers
43 views

Unity Textmesh Pro is blurry/pixelated

I am new to Unity and I'm having trouble with the text in my project. The text appears very pixelated, and I can't figure out why. Here is an example of how it looks: I started a new 2D project, ...
Deniz Böttcher's user avatar
0 votes
2 answers
38 views

c# find word and parts of that word seperated by spaces

I have a lot of texts and a search term, for example 'simcard'. I then want all places where 'simcard' appears, but also 'sim card', for example. How should I achieve that? You can of course delete ...
CorBins's user avatar
  • 19
1 vote
1 answer
76 views

Unity C# - Check for overflow text in a text box. If so remove it and move it into the beginning of a string list

I'm making a typing game that pulls lines from a text file, adds them to a string array and displays as many as it can fit in a text box. When all lines that currently fit are typed, they are removed ...
Luke Piazza's user avatar
-1 votes
2 answers
52 views

How to convert a method to text in another script in c#

I have not been using unity to program for very long so forgive me if this is a simple fix. I need to get the value of a method and display it in a prefabs text box. Right not the code reads public ...
SomeStupidSheep GD's user avatar
0 votes
2 answers
75 views

Reverse Right to left text with examples [closed]

I want to get this The text comes as a sample like this sample This: hello all my name nora like this: nora name my all hello Of course, the important point is that this is not just for one text, I ...
omid leon's user avatar
0 votes
0 answers
39 views

Is there a way to remove text formatting/custom fonts in my UWP app?

I'm creating a simple chat application and I wonder if there is a simple way of "sanitizing" user chats to prevent the use of crazy fonts... ...
deskplace's user avatar
-1 votes
1 answer
68 views

Having Trouble Figuring out how to get text into my drag and drop scripts in unity

So I am a beginner at unity and am slowly making a game but, I ran into this problem and I can't seem to figure out how to solve it. You see I have several text Mesh Pro UGUI objects within a canvas ...
josh Sparks's user avatar
0 votes
0 answers
48 views

How to simulate paste option 'keep text only' programmatically?

I am writing a program in C# that involves converting .docx files to plain html. I noticed that in some scenarios text in .docx appears different than its plain text representation. However, removing ...
Kazimieras Jasaitis's user avatar
-2 votes
1 answer
33 views

My unity Script only edits the text of two objects but not the other two

So I have this script where it would grab a random question and it would also randomize the answers for the question my problem is that the script only fills the first two answers but not the other ...
Ezx's user avatar
  • 1
0 votes
3 answers
133 views

Make all the first letters uppercase except for words with at max 3 characters

I have a text file that the users can edit with many strings, I would like to have all the first letters uppercase except for words with <= 3 characters that must be all uppercase. using LINQPAD I ...
masha's user avatar
  • 21
0 votes
0 answers
20 views

Issues with bitmap character spacing

I've been working on a bitmap character renderer for my game engine in C#, however i've been running into some problems related to spacing. This script parses the font and gets all the relevant data ...
Jessica Jones's user avatar
1 vote
2 answers
101 views

Selenium C#: Find element of text of URL with extra '/'

Newbie here with Selenium C# and teaching myself along the way. I have got code and tests running for when I am able to verify a piece of text connected to the URL. Example of what I have got working:...
Kirsty Meredith's user avatar
1 vote
2 answers
288 views

How do I send a list as a text file (ASP.NET Core web API)?

I am building an ASP.NET Core web API project. I get the data from the database in the controller: public IActionResult GetPosts() { var data = _context.posts.firstOrDefault(//expression...) ...
MMD's user avatar
  • 45
1 vote
0 answers
436 views

How to get the text from an image in memory with C#

I try to create a simple application that read the text form an area in the screen. I manage to do it without problem with Tesseract and Ocr but only from a file. Here is my code : using (var bm = ...
Agfasion's user avatar

15 30 50 per page
1
2 3 4 5
120