Пример #1
0
		public static GameObject LoadAssetImmediate(string assetBundleName, string assetName)
		{
			string text = Path.Combine(AssetBundleManager.GetCreateFilePath(), "AssetBundles/" + assetBundleName);
			AssetBundle assetBundle = null;
			if (assetBundle == null)
			{
				Debug.LogError("## Failed to load AssetBundle: " + assetBundleName);
				return null;
			}
			return assetBundle.LoadAsset<GameObject>(assetName);
		}