Search Unity

Resizable Text

Discussion in 'Scripting' started by Smagacz, Apr 25, 2017.

  1. Smagacz

    Smagacz

    Joined:
    Feb 10, 2016
    Posts:
    23
    Hi,
    I want to display app logs at scrollContent.
    I have list of logs where log is :

    Code (CSharp):
    1. public class Log
    2. {
    3.       public string LogType {get; set;}
    4.       public LogType LogType {get; set}
    5. }

    To display log message should I use string or StringBuilder at one Text component with supporting richText or make Text prefab foreach list element?
    How to use scrollContent and Text? It should resize depend on text lenght