protected override void OnLoad() { bundle = ABAssets.Bundles.LoadSync(ABAssets.GetBundleName(assetPath)); bundle.onError += ThrowError; m_asset = bundle.LoadAsset(ABAssets.GetAssetName(assetPath), assetType); m_isdone = true; }
protected override void OnLoad() { bundle = ABAssets.Bundles.LoadAsync(ABAssets.GetBundleName(assetPath)); bundle.onError += ThrowError; }