Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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,194
    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