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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

[Solved] UI Text weird vertex positions in ModifyMesh

Discussion in 'UGUI & TextMesh Pro' started by customphase, Aug 7, 2016.

  1. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    241
    Hey everybody. So i implemented this inline images technique in text component in unity back in version 5.2: by using ModifyMesh i was tracking the positions of certain reserved characters and used those positions to place images on top of them in update, and it all worked fine back in 5.2. However in 5.4 the positions of characters i track became bizzare. For example, im outputting the positions of top left vertices of "G" and "M" symbols, and those positions differ in X value, even though they lie exactly on the same coordinate on the X axis.
    a1.PNG
    My assumption is that those positions are now dont account for new lines and are restrained by some rect. So what is the deal here? Is there a better way to do this?
     
    Last edited: Aug 7, 2016
  2. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    241
    Nevermind. The problem was that Unity post 5.3 uses 6 vertices per character and not 4, as it did before.