You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
449 B
23 lines
449 B
2 years ago
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
using System.Collections;
|
||
|
|
||
|
namespace UIWidgets {
|
||
|
|
||
|
/// <summary>
|
||
|
/// List view item component.
|
||
|
/// </summary>
|
||
|
[AddComponentMenu("UI/UIWidgets/ListViewStringComponent")]
|
||
|
public class ListViewStringComponent : ListViewItem
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The Text component.
|
||
|
/// </summary>
|
||
|
public Text Text;
|
||
|
|
||
|
public virtual void SetData(string text)
|
||
|
{
|
||
|
Text.text = text.Replace("\\n", "\n");
|
||
|
}
|
||
|
}
|
||
|
}
|