Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

How to Set Text Overflow from Script

Discussion in 'UGUI & TextMesh Pro' started by T2Unity, Aug 21, 2014.

  1. T2Unity

    T2Unity

    Joined:
    Aug 21, 2014
    Posts:
    26
    Hi all.
    I want to set UnityEngine.UI.Text`s "Vertical Overflow" setting from script.
    And I found enum about it from document.

    VerticalWrapMode
    Wrapping modes for text that reaches the vertical boundary.

    But there is no property at Text.

    How to change this?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Hi, it looks like we forgot to expose this to script. Can you log a bug so we remember to do this after Unite?
     
  3. T2Unity

    T2Unity

    Joined:
    Aug 21, 2014
    Posts:
    26
    Thanks I'll send Bug Report.
     
  4. dchau_hh

    dchau_hh

    Joined:
    Jan 22, 2014
    Posts:
    24
  5. netvortex_dc

    netvortex_dc

    Joined:
    Jan 13, 2014
    Posts:
    126
  6. Geekforlife

    Geekforlife

    Joined:
    Dec 21, 2019
    Posts:
    1
    Text.verticalOverflow = VerticalWrapMode.Overflow;
    seems to work