Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public static string GetABCachedPath(string url,
uint version);
Declaration
public static string
GetABCachedPath(string
url,
CachedAssetBundle cachedBundle);
Declaration
public static string
GetABCachedPath(string
url,
Hash128 hash);
Declaration
public static string
GetABCachedPath(string
url,
string
name,
Hash128 hash);
Parameters
url |
The nominal (pre-redirect) URL at which the asset bundle is located. |
version |
Current version number of the asset bundle at url . |
hash |
A hash object defining the version of the asset bundle. |
cachedBundle |
A structure used to download a given version of AssetBundle to a customized cache path. |
name |
AssetBundle name which is used as the customized cache path. |
Returns
string
Returns the path of a cached downloaded AssetBundle, or an empty string if not exist.
Description
Returns the path of a cached downloaded AssetBundle, or an empty string if not exist.
A static function provided for convenience; Returns the local cached path of a downloaded AssetBundle, only works on native platforms with caching enabled.