Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

TextMesh Pro to texture

Discussion in 'Unity UI & TextMesh Pro' started by undefined_error, Feb 11, 2019 at 10:35 AM.

  1. undefined_error

    undefined_error

    Joined:
    Jan 18, 2019
    Posts:
    2
    Is there any way to get a texture out of a TextMesh Pro object? So to use it as a texture map for a material?

    Thank you.
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    2,136
    I would suggest using a RenderTexture.

    There should be a few posts detailing how to set that up.
     
  3. undefined_error

    undefined_error

    Joined:
    Jan 18, 2019
    Posts:
    2
    Thank you Stephan for your reply.
    That is what I have been trying to do, but the result isn't that great.

    upload_2019-2-12_12-3-50.png

    I have been using the TextMeshPro/Distance Field (surface) shader on the mesh material, and playing around with dilate/softness values helps a bit, but looking at the contours it seems clear that the the tilted edges - see "Y" - are well jagged to begin with.

    upload_2019-2-12_12-23-22.png

    Unless I am doing something very wrong, it doesn't seem like RenderTarget is a good solution for this.
    I feels like it adds and extra trip which invariably worsens quality.

    I was hoping there would be a way to avoid it and get a texture straight for a textMeshPro script.
     
    Last edited: Feb 12, 2019 at 1:35 PM