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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Set UI.Text overflows from script.

Discussion in 'UGUI & TextMesh Pro' started by darthbobr, Oct 12, 2014.

  1. darthbobr

    darthbobr

    Joined:
    Jul 2, 2014
    Posts:
    6
    Hi. I'm writing a toolbar with new UI system that dynamically creates subcomponents - I'm not using and not gonna use prefabs for this subcomponents. Everything is fine except for one thing - I have no idea how to change the UI.Text fields "Horizontal Overflow" and "Vertical Overflow" for my subcomponents from the script. Any suggestions?
     
  2. JHibbins

    JHibbins

    Joined:
    Apr 25, 2014
    Posts:
    9
    You don't seem to be able to access horizontalOverflow i'm told you can reflect it though, anyone know how to do this?
     
  3. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,184
    Hi, i've added this to the code (oversight) it will arrive as some stage :)