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

anyone know what happened with my text?

Discussion in '2D' started by brunoenvia, Aug 19, 2019.

  1. brunoenvia

    brunoenvia

    Joined:
    Aug 5, 2019
    Posts:
    94
    hi guys anyone know why i can see my canvas text in game but can't see it in editor?




     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,802
    Are you using a script to generate that text? Because the script will only run during gameplay. Your second screenshot shows no text in the component text field.
     
    MisterSkitz likes this.
  3. TigerDawn

    TigerDawn

    Joined:
    Aug 4, 2018
    Posts:
    21
    Did you hit return at the end of the sentence? Are you looking at the next line, in a space that is not big enough to show 2 lines of text?
     
  4. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    Indeed, he must be generating at run time for the label field is empty because no text exist until he clicks play. Good call! :)