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

UI ScrollRect Dynamic Text Placement

Discussion in 'UGUI & TextMesh Pro' started by jzombie, Sep 3, 2015.

  1. jzombie

    jzombie

    Joined:
    Sep 3, 2015
    Posts:
    2
    I just learned how to use the ScrollRect, scrollbar, and mask for Text and it works great.

    The issue I am having is that my text content is dynamic. Sometimes it is a few pages, sometimes just a few sentences. The problem is that the text is sometimes offscreen or half onscreen. This looks very unprofessional.

    My goal is to present a scrollable masked window with the text to the top left corner each time, no matter the length of the text block, then the player can scroll as he/she chooses.

    Thanks for any help!

    JZ
     
  2. jzombie

    jzombie

    Joined:
    Sep 3, 2015
    Posts:
    2
    I figured it out. I was looking for a coding solution when the Text object has the text justification controls already staring me in the face lol