public override void Enter(SceneTransitionControl entity) { base.Enter(entity); m_Entity = entity; m_Handle = AddressableResMgr.S.LoadAssetAsync <GameObject>("AnimTransition", LoadAnimGo); //m_Overlay.GetComponent<RectTransform>().sizeDelta = new Vector2(Screen.width, Screen.height); }
public AddressableRes LoadAssetAsync <T>(string assetName, Action <T> completeCallback = null, string label = "") { BaseAddressableRes res = null; if (!m_ResMap.TryGetValue(assetName, out res)) { res = new AddressableRes(); res.assetName = assetName; m_LstHandle.Add(res); m_ResMap.Add(assetName, res); } (res as AddressableRes).LoadAssetAsync <T>(assetName, completeCallback); return(res as AddressableRes); }