添加虚拟列表插件
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace CreatGame.UI
|
||||
{
|
||||
public class MainItem : MonoBehaviour
|
||||
{
|
||||
public Text text;
|
||||
|
||||
void ScrollCellIndex (int idx)
|
||||
{
|
||||
string name = "Cell " + idx.ToString ();
|
||||
if (text != null)
|
||||
{
|
||||
text.text = name;
|
||||
}
|
||||
gameObject.name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user