添加虚拟列表插件

This commit is contained in:
2025-07-19 20:29:55 +08:00
parent 656e0b0652
commit 645d57c7c9
42 changed files with 233 additions and 4263 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 391eb6d877254380bf561b14e4be836f
timeCreated: 1752925668

View File

@@ -1,4 +1,5 @@
using UnityEngine;
using System.Collections.Generic;
using UnityEngine;
namespace CreatGame.UI
{