![]() |
Easy Content Delivery Network 1.3.2
An addressables-free suite that automatically handles the Unity Cloud Content Delivery API and packaging/deploying assetbundles while providing several tools to make asset management easy.
|
MonoBehaviour component that can request a scene asset from the CDN. Accepts any UnityEditor.SceneAsset as an asset. More...
Public Member Functions | |
void | DownloadAndLoadScene () |
UnityEvent listener for the inspector. | |
async void | DownloadAndLoadSceneAsync (Progress< AssetRetrievalProgress > progress=null, Action onSuccess=null, Action< AssetRetrievalResult > onFailure=null, bool waitForManagerInit=true) |
Downloads and loads the scene attached to this component. | |
![]() | |
bool | TryGetAssetRetrievalResult (out AssetRetrievalResult assetRetrievalResult) |
Gets status of last download attempt for an asset. Note: If an asset was pulled from the cache, it will return response code 200 with UnityWebRequest.Result.Success. | |
async Task< AssetBundle > | GetAssetBundle (Progress< AssetRetrievalProgress > progress=null) |
Retrieves this components Asset from the CDN. | |
async Task< T > | GetAsset (Progress< AssetRetrievalProgress > progress=null, Action< T > onSuccess=null, Action< AssetRetrievalResult > onFailure=null, bool waitForManagerInit=true) |
Retrieves an asset from the content delivery network. | |
Additional Inherited Members | |
![]() | |
UnityEvent | OnRetrievalStarted [get] |
Fires when retrieval starts. Useful for starting up a loading bar. | |
UnityEvent< float > | OnProgressUpdated [get] |
Fires when download / load progress changes. Includes a float between 0 and 1 representing progress. | |
UnityEvent< long > | OnRetrievalFailed [get] |
Fires when an asset retrieval attempt did not work. Includes a long integer http status code | |
UnityEvent | OnRetrievalSuccess [get] |
Fires when an asset retrieval attempt succeeded. | |
MonoBehaviour component that can request a scene asset from the CDN. Accepts any UnityEditor.SceneAsset as an asset.
async void SplenSoft.AssetBundles.SceneRequester.DownloadAndLoadSceneAsync | ( | Progress< AssetRetrievalProgress > | progress = null, |
Action | onSuccess = null, | ||
Action< AssetRetrievalResult > | onFailure = null, | ||
bool | waitForManagerInit = true ) |
Downloads and loads the scene attached to this component.
progress | An optional Progress object to track download/load progress for a loading screen / bar |