Search Unity

TextMesh Pro Looking for recommendations on creating an odometer font asset

Discussion in 'UGUI & TextMesh Pro' started by mhovland_everi, Jun 14, 2022.

  1. mhovland_everi

    mhovland_everi

    Joined:
    Feb 19, 2022
    Posts:
    1
    I am looking to create an odometer (vertically scrolling numbers), and I am looking for suggestions on how to create the font asset. I have an asset that only contains numbers and comma and period. I am looking for a combination of settings that will allow all the numbers to be the same height. I want to scroll the values such that a single offset value will take me from the first number, to the next, every time.

    so, with text set:
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    0

    I want to move the gameObject, for example += 2, and know that the next number in sequence will always be centered in the view.

    I can set it up so that each column of values is an individual stack of single value TMPro objects, but that seems inefficient (100, would be three columns of 11 TMPro objects), given the number of odometers I could need .

    Is there a specific set of changes to make to the generated font asset, and glyph table to make this happen?

    Thanks,
    Mike