Search Unity

TextMesh Pro Modify quad position and prevent TextMesh Pro from overriding it

Discussion in 'UGUI & TextMesh Pro' started by xVergilx, Jun 4, 2019.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    I've been following TextMesh Pro warp example in attempt to move characters into specific locations.
    But it seems that Text Mesh Pro also modifies the quads after vertices is assigned to it.

    I need some kind of way to move characters in specific world positions, and prevent them from being moved by things like alignment etc.

    @Stephan_B any suggestions?
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    I guess I could just enforce center alignment in OnValidate and work in local space instead.
     
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    With a little bit of math magic, got an end result:
    GIF.gif
    I guess its even better that vertices are processed in the local space. Works like a charm :)
     
    Last edited: Jun 4, 2019
    ina and Stephan_B like this.