Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Making a unicode character act like a blank space (u+20)

Discussion in 'UGUI & TextMesh Pro' started by ChuckyNuttys, Dec 18, 2023.

  1. ChuckyNuttys

    ChuckyNuttys

    Joined:
    May 31, 2022
    Posts:
    1
    I am working on creating a typing game. I am using text mesh pro. To make the game more interactive I would like to handle the spaces between words displayed by displaying a underline character instead of blank space. (not exactly a underline character but actually character code u+2324. A good example of what I would to do is here (https://www.keybr.com/) . I tried editing the blank space glyph in a font generator by copying the Unicode glyph into the blank box for the blank space glyph but when I type in unity it doesn't display the glyph it is still blank. When I look at the glyphs, it does show the correct image in the unity editor.

    The reason I cannot insert a Unicode character the 'normal' way is it will mess up character wrapping. I used code to convert space characters to my desired Unicode characters which worked fine but the wrapping was incorrect.

    upload_2023-12-17_23-6-46.png
    Picture of my desired goal
    upload_2023-12-17_23-7-15.png
     
    Last edited: Dec 18, 2023