Search Unity

TextMesh Pro Setting Sorting Layer and Order by Code?

Discussion in 'UGUI & TextMesh Pro' started by PedroGV, Oct 11, 2018.

  1. PedroGV

    PedroGV

    Joined:
    Nov 1, 2010
    Posts:
    415
    Is it possible to set the sorting-layer id and order -available in extra settings, by code for TMP_Text class?
     
  2. PedroGV

    PedroGV

    Joined:
    Nov 1, 2010
    Posts:
    415
    Anyone?
     
  3. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
  4. PedroGV

    PedroGV

    Joined:
    Nov 1, 2010
    Posts:
    415
    Done, thanks.

    One more thing: mutli-editing of such two fields is not available on the inspector. Say you select 10 text objects and then change the layer on the inspector for such multiple-selection on the extra settings, you will see that only one of them is changed.
     
    Last edited: Oct 12, 2018
  5. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697