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. Dismiss Notice

TextMesh Pro Is it possible to combine TMP with another mesh?

Discussion in 'UGUI & TextMesh Pro' started by Drowning-Monkeys, Mar 16, 2018.

  1. Drowning-Monkeys

    Drowning-Monkeys

    Joined:
    Mar 6, 2013
    Posts:
    328
    Hi there,

    I've seen this done but can't figure out how it's done. I'd like to combine some TMP text that will not change with a plane mesh, so that i can make it look like a piece of paper and deform it and stuff.

    How would i accomplish that?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Since the geometry of the text is made up of quad / very few vertices, it doesn't allow for very nice / smooth deformation unless you Tessellate it. This could certainly be done but perhaps a simpler approach would be to use a render texture and render the text that way and then simply map this texture onto predefined geometry that is suitable for the deformation you want to do.

    This question has been asked before, so a search might reveal additional insight / information.
     
  3. Drowning-Monkeys

    Drowning-Monkeys

    Joined:
    Mar 6, 2013
    Posts:
    328
    Sorry man, I tried a few different search terms like "Textmesh combine" "textmesh page" etc etc but couldn''t find anything. Render texture sounds like an interesting compromise, i'll give it a shot.

    Btw the package that actually can do it is megabook. He grabs all your verts and stacks em together somehow.
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    His Mega-Fiers also support deformation of TMP text objects. This is done by tessellating the geometry of the text so that each character is made up of more than 4 vertices to provide for smoother deformation.