Search Unity

TextMesh Pro Setting Transform To Centre of Bounds

Discussion in 'UGUI & TextMesh Pro' started by renman3000, Mar 12, 2018.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Hi There,
    Love TMP but when I adjust the bounds of the TMP unit, the transform coordinates to not adjust with the bounds. So, for example, if my transform is at pos(0,0,0), and I rescale the bounds of the TMP so that the left, bottom corner (which was at pos (-1,-1), but is now at (1,1)), my transform has not adjusted to sit in the centre of these new bounds coordinates.


    Is there something I can do, to fix this?

     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The Yellow lines represent the Margin of the text which provides for a way to offset the text relative to the RectTransform (Text Container) and pivot.

    The Margin Panel is located in the Extra Settings panel of the text object Inspector.

    When adjusting the RectTransform, grab the line in the middle of the yellow lines. When adjusting the Margin, grab the Yellow dot.
     
    renman3000 likes this.