This is an example of a project using the Core Framework. Works with Unity 2019.1 and above.
- .Net 4.5.
- .Net Standards 2.0
After cloning the repo go to Assets -> MyGame and open the scene CoreGame. This will be your starting point.
You may need to build the asset bundles depending on which platform you're using. Please refer to the AssetBundles-Browser documentation on how to do that.
Asset Bundle simulation is enabled by default. If you wish to disable it go to menu Core Framework -> Disable Simulate Asset Bundles.
Asset Service is the service in charge of loading asset bundles. The configuration file for this service is located in MyGame -> _CoreConfig -> AssetService
- Use Streaming Assets
- Toggling this will load the asset bundles from the streaming assets folder
- Asset Bundles URL
- Location where the asset bundles are stored on the cloud
- Cache Asset Bundles?
- Toggle this if you want to cache the asset bundles on device. The file UnityCloudBuildManifest.json needs to be present in order to cache bundles.
The asset bundle directory organization is tied to the enum AssetCategoryRoot:
public enum AssetCategoryRoot
{
None,
Configuration,
Services,
Levels,
Scenes,
UI,
Audio,
Prefabs,
Particles
}
The service will also automagically detect the platform it's running on, and use that to get the asset bundles from the web in the following order: