添加虚拟列表插件
This commit is contained in:
@@ -131,7 +131,7 @@ namespace CreatGame.AssetBundle
|
||||
/// <returns></returns>
|
||||
private AssetBundleData CacheAssetBundles(string bundleName, GameObject bundle = null)
|
||||
{
|
||||
var data = new AssetBundleData(){assetBundleName = bundleName, assetBundle = GameObject.Instantiate(bundle)};
|
||||
var data = new AssetBundleData(){assetBundleName = bundleName, assetBundle = bundle};
|
||||
assetBundles.Add(bundleName, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 391eb6d877254380bf561b14e4be836f
|
||||
timeCreated: 1752925668
|
||||
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CreatGame.UI
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user