Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Can we get the TextGenerator open sourced?

Discussion in 'UGUI & TextMesh Pro' started by douglasg14b, Jun 10, 2015.

  1. douglasg14b

    douglasg14b

    Joined:
    Oct 2, 2014
    Posts:
    34
    I'm been having a really hard time getting text within Unity to behave in a consistent manner, and just like with the UI classes it would be very nice to be able to modify the TextGenerator to fit my needs instead of trying to find hacks and workarounds for it's limited behavior.

    It would be very beneficial to have the source of the TextGenerator available in the same way the UI source is, giving us the ability to modify the class to fit our own needs.

    An example of some behavior I would like to personally add in is the ability to display formatted text, while excluding the <color=red></color> brackets (and all other brackets) from the actual text itself. Instead holding onto the formatting as metadata of the text either in a flat list, or a tree structure. The text itself is just cleaned by a parser I made and the meta data stored in sections that can be associated with the text at any time.
     
    Last edited: Jun 10, 2015
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    No TextGenerator is a native class and you'd have no way to build your modifications.
     
  3. douglasg14b

    douglasg14b

    Joined:
    Oct 2, 2014
    Posts:
    34
    Ah I see. Too bad, was hoping it was a C# class.

    I appreciate the reply Phil, it's nice to see Unity staff showing a presence on the forums.