![]() |
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.
|
Base class for asset bundle requesters of various objects or scenes. More...
Public Member Functions | |
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. | |
Base class for asset bundle requesters of various objects or scenes.
T | : | UnityEngine.Object |
async Task< T > SplenSoft.AssetBundles.Requester< 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.
T | Any UnityEngine.Object derivative type, such as GameObject or Sprite |
async Task< AssetBundle > SplenSoft.AssetBundles.Requester< T >.GetAssetBundle | ( | Progress< AssetRetrievalProgress > | progress = null | ) |
Retrieves this components Asset from the CDN.
progress | Optional custom progress tracker |
bool SplenSoft.AssetBundles.Requester< T >.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.
assetRetrievalResult |