Looking for an updated Asset Bundle Tutorial, since this is a must for my next project.
Found one here that says it was checked with v5.2: https://unity3d.com/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager?playlist=17117
I’ve tried it with v5.2.3f1 but it doesn’t create the Asset Bundles when I use the dropdown menus Assets > AssetBundles > Build AssetBundles even if I create an AssetBundles folder.
Also tried it in v5.4.2f2, but gives a bunch of warnings when imported into a new scene:
Assets/AssetBundleManager/AssetBundleLoadOperation.cs(89,65): warning CS0618: UnityEngine.Application.LoadLevelAdditiveAsync(string)' is obsolete: Use SceneManager.LoadSceneAsync’
Assets/AssetBundleManager/AssetBundleLoadOperation.cs(91,65): warning CS0618: UnityEngine.Application.LoadLevelAsync(string)' is obsolete: Use SceneManager.LoadSceneAsync’
Assets/AssetBundleManager/Utility.cs(32,42): warning CS0618: UnityEditor.BuildTarget.WebPlayer' is obsolete: WebPlayer has been removed in 5.4’
Assets/AssetBundleManager/Utility.cs(59,46): warning CS0618: UnityEngine.RuntimePlatform.OSXWebPlayer' is obsolete: WebPlayer export is no longer supported in Unity 5.4+.’
Assets/AssetBundleManager/Utility.cs(60,46): warning CS0618: UnityEngine.RuntimePlatform.WindowsWebPlayer' is obsolete: WebPlayer export is no longer supported in Unity 5.4+.’
Assets/AssetBundleManager/Editor/BuildScript.cs(121,42): warning CS0618: UnityEditor.BuildTarget.WebPlayer' is obsolete: WebPlayer has been removed in 5.4’
Assets/AssetBundleManager/Editor/BuildScript.cs(122,42): warning CS0618: UnityEditor.BuildTarget.WebPlayerStreamed' is obsolete: WebPlayerStreamed has been removed in 5.4’
The v5.5 docs here https://docs.unity3d.com/Manual/DownloadingAssetBundles.html
uses this approach for the editor:
Obj = Resources.LoadAssetAtPath(“Assets/” + asset, typeof(T));
which the editor tells me is now obsolete when I try it and I should
Use AssetDatabase.LoadAssetAtPath instead (UnityUpgradable) → * [UnityEditor] UnityEditor.AssetDatabase.LoadAssetAtPath(*)’
So seems to be out of date too.
Just looking for a good starting point/example for Asset Bundles that works and is a good foundation using Unity v5.2.3f1 upwards.
Thanks in advance!