导入R3,简单实现数据绑定UI,以及双向绑定

This commit is contained in:
2025-11-05 05:16:06 +08:00
parent 1ccc7f299d
commit c5c380d170
137 changed files with 6900 additions and 24 deletions

View File

@@ -1,11 +1,20 @@
using Cysharp.Threading.Tasks;
using UnityEngine;
using YooAsset;
public class GameStart : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
async void Start()
{
Debug.Log("GameStart");
GamePreload.Inst.Test("call by GameStart");
await LoadSimpleR3Test();
}
async UniTask LoadSimpleR3Test()
{
AssetHandle handle = YooAssets.LoadAssetAsync<GameObject>("SimpleR3Test");
await handle;
GameObject.Instantiate(handle.AssetObject, MainUICanvas.Inst.Medium);
}
}