导入R3,简单实现数据绑定UI,以及双向绑定
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user