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 async void Start() { Debug.Log("GameStart"); GamePreload.Inst.Test("call by GameStart"); await LoadSimpleR3Test(); } async UniTask LoadSimpleR3Test() { AssetHandle handle = YooAssets.LoadAssetAsync("SimpleR3Test"); await handle; GameObject.Instantiate(handle.AssetObject, MainUICanvas.Inst.Medium); } }