Search Unity

Question How To Check TMP version by code

Discussion in 'UGUI & TextMesh Pro' started by Mortalanimal, Nov 16, 2020.

  1. Mortalanimal

    Mortalanimal

    Joined:
    Jun 7, 2014
    Posts:
    568
    Hello, So I am making an asset that Uses TMP. However, depending on the version of TMP installed, the alignment of text for the same setting looks different.

    So I want to check by Code something like if(Older than version.x) => align using this setting.

    you can do something similar to test for unity version:




    Thanks in advance