![]() ![]() Refresh the content to see the bundle file. It will create a bundle at AssetBundle directory. ![]() select prefab and click Assets > Build AssetBundle to create asset bundle of it. If bundle has been loaded, let's attach it to this target ![]() MBundleInstance = Instantiate(bundle.LoadAsset(AssetName)) as GameObject Throw new UnityException("mAssetBundle download had an error: " + mAssetBundle.error) īundle = DownloadHandlerAssetBundle.GetContent(mAssetBundle) String bundleURL = " using (UnityWebRequest mAssetBundle = UnityWebRequestAssetBundle.GetAssetBundle(bundleURL)) example URL for retrieving bundle from a server Private ObserverBehaviour mObserverBehaviour Private GameObject mBundleInstance = null Public class AssetBundleAugmenter : MonoBehaviour an Image Target that has been set up in the scene. The script will thenload a model from an AssetBundle at a specific URL and attach it to your target GameObject at run time. Attach the script to your target GameObject, e.g.Name the script: AssetBundleAugmenter.cs. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |