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.
27 lines
767 B
27 lines
767 B
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using EnhancedUI.EnhancedScroller;
|
|
|
|
namespace EnhancedScrollerDemos.SuperSimpleDemo
|
|
{
|
|
/// <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>
|
|
/// This function just takes the Demo data and displays it
|
|
/// </summary>
|
|
/// <param name="data"></param>
|
|
public void SetData(Data data)
|
|
{
|
|
// update the UI text with the cell data
|
|
someTextText.text = data.someText;
|
|
}
|
|
}
|
|
}
|