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.
Loading...
Searching...
No Matches
SplenSoft.AssetBundles.AssetRequester Class Reference

MonoBehaviour component that can request an asset from the CDN. Accepts any UnityEngine.Object as an asset. Cannot instantiate or further manipulate the asset without the help of code. For codeless or more specific usages, try SceneRequester More...

Additional Inherited Members

- Public Member Functions inherited from SplenSoft.AssetBundles.Requester< UnityEngine.Object >
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.
 
- Properties inherited from SplenSoft.AssetBundles.Requester< UnityEngine.Object >
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.
 

Detailed Description

MonoBehaviour component that can request an asset from the CDN. Accepts any UnityEngine.Object as an asset. Cannot instantiate or further manipulate the asset without the help of code. For codeless or more specific usages, try SceneRequester


The documentation for this class was generated from the following file: