AssetBundle (DLC) data load to Android phone at runtime [UNITY] [duplicate] - unity3d

This question already has an answer here:
Download AssetBundle in hard disk
(1 answer)
Closed 4 years ago.
I'm using Asset Browser of Unity. I want to reduce my game. So I should make Asset Bundle(DLC) and when i click download button in phone, datas will download and load to phone as permanantly, it will download at once, after that user can play as offline. I builded my data in Asset Browser. how can i load it?

First, you need to build the asset bundles (with Asset bundle browser) and put them in a server that is publicly accesible. You need to use UnityWebRequest in your game to download your assetbundle from the server.
https://docs.unity3d.com/Manual/UnityWebRequest-DownloadingAssetBundle.html
Or you can use Unity Asset Bundle Manager (EDIT: Looks like Unity removed it from the asset store)
However, I have found this awesome tool, that I am actually using too, and it does a way better job. Just read the README, it is pretty straightforward. You just have to set the URL of your bundles, and then download bundles by specifying their name.
https://github.com/SadPandaStudios/AssetBundleManager

Related

Flutter: non-asset local image

I'd like to include images in my Flutter application which are not asset images.
Let me clarify a bit. I am working with an embedded Unity application inside the Flutter app. I can communicate bidirectionally and part of the communication is sending a file location from Flutter to Unity, such that the Unity app can read that image and do something with it (e.g. a texture). But since assets are not directly accessible by location, I cannot give the path to the Unity part of the application.
So would there be a way to include images in the app and reference them by old school path?

Best way to dynamically load Assets in Unity WebGL Builds from external Source during Runtime

Ive got a Unity WebGL Build with alot of Assets (1k+) that keep increasing. Everytime a new Asset gets added the whole Thing has to be built again which takes a lot of Time.
I only need a small Amount of the Assets during Runtime but i cant know which Assets exactly (The User can decide which Assets to actually use and see during Runtime).
Ive heard about Asset Bundles but i dont quite understand them yet. Is it possible to have some Sort of external Server running on its own with all the Assets there and then have the WebGL Build load the specific Assets it needs during Runtime from that Server?
You can use Addressable Asset System with remote catalog for dynamic asset delivery using any CDN. Every time you run your game Addressable Asset System will download assets dynamically & asynchronously. This feature is successor of old asset bundle system.

Where to store large assets for Unity Augmented Reality game on Hololens

I have an app called 3Dhologirlfriend that can be deployed to the Hololens or Meta Augmented Reality devices. I have read that it is not good practice to store large assets in a Unity executable so we are looking to store the assets somewhere else and then download them at runtime. I have researched this a bit and found the concept of an asset bundle. My question is where to store this asset bundle so that it is secure and cannot be downloaded by anything other than the Unity app.
You can retrieve the asset bundle from a remote HTTP server using UnityWebRequest and AssetBundle.
UnityWebRequest can be configured to work with HTTPS and client certificates.
There are many places to host your file, the details of which are probably out of scope (AWS buckets, google firebase, self hosting a server, etc..).

Unity - Uploading and downloading files in a game using a GUI

Is it possible in Unity to upload and download files while in a game? I want to make a minecraft-style building game and allow the user to import and use their own models (.obj files, etc), while in the game. I've been using Playfab for a backend and Photon for online cabilities, but as far as I can tell it will only work with image files (in Playfab). Is there a way to accomplish this and what would I need to use?
Yes, the way to go is to use Asset Bundles
Asset Bundles are platform specific assets that you create in Unity, but that you don't put in your build. Instead you can download them later, just as you want.
The process is a bit long, but not that difficult. The unity manual is actually really good and it should be easy to follow. Here is the link:
Asset Bundles documentation

"Vuforia Core Samples", but there is no Word-list file

i'm trying to start using Text recognition in my unity project, i've download the asset "Vuforia Core Samples", but there is no Word-list file.
is there anyway to create my own word-list file, or download one?
English word list is available on Vuforia website. If you downloaded Vuforia Core Samples from Unity Asset Store than you probably didn't get it in the package. See This-- you can download from here https://library.vuforia.com/articles/Training/Text-Recognition-Guide
Once you download wordlist, you would need to unzip the file and put it in the asset folder. Please check this for more info-https://developer.vuforia.com/forum/unity/standard-wordlist-download