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.
 
 
 
 
 
 

34 lines
944 B

using UnityEngine;
using UnityEngine.UI;
using EnhancedUI.EnhancedScroller;
namespace EnhancedScrollerDemos.Chat
{
/// <summary>
/// This is the view of our cell which handles how the cell looks.
/// </summary>
public class CellView : EnhancedScrollerCellView
{
/// <summary>
/// A reference to the UI Text element to display the cell data
/// </summary>
public Text someTextText;
/// <summary>
/// A reference to the rect transform which will be
/// updated by the content size fitter
/// </summary>
public RectTransform textRectTransform;
/// <summary>
/// The space around the text label so that we
/// aren't up against the edges of the cell
/// </summary>
public RectOffset textBuffer;
public void SetData(Data data)
{
someTextText.text = data.someText;
}
}
}