Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro Automated Font Asset Creation

Discussion in 'UGUI & TextMesh Pro' started by SpiralCircus, Apr 30, 2020.

  1. SpiralCircus

    SpiralCircus

    Joined:
    Feb 1, 2014
    Posts:
    34
    I'm looking for a way to automate generation of font assets as and when translation data gets updated. I currently do this manually by pasting my character set into the editor font asset creator and doing the process by hand, but this is extremely tedious to do with multiple fonts, mutliple times over the course of development.

    Is there an API I can use to access this functionality via an editor script of my own? I've onyl found one thread about this, from 3 years ago and it points people towards a now non-functional github project by a TMP user before unity integrated TMP directly.

    I can easily find all the characters I need by parsing my translation file. I want to feed these, along with the source fonts into the font asset creator programatically.