Method RemapContentPath
RemapContentPath(string)
Remaps the orignal content path to the path of the content in the local cache.
Declaration
[Obsolete("Use the version of this method that takes a parameter for checking device for file existence.")]
public string RemapContentPath(string originalPath)
Parameters
Type | Name | Description |
---|---|---|
string | originalPath | The original content path, relative to the streaming assets folder. |
Returns
Type | Description |
---|---|
string | The remapped path in the local cache. If the content is not already in the cache, the original path is returned. |
RemapContentPath(string, bool)
Remaps the orignal content path to the path of the content in the local cache.
Declaration
public string RemapContentPath(string originalPath, bool requireFileOnDevice)
Parameters
Type | Name | Description |
---|---|---|
string | originalPath | The original content path, relative to the streaming assets folder. |
bool | requireFileOnDevice | If true, the remapped path will be checked to exist before returning. If the file does not exist, the original path will be returned instead. |
Returns
Type | Description |
---|---|
string | The remapped path in the local cache. If requireFileOnDevice is false, this will return the cached path even if it has not been downloaded yet. |