Method GetStreamingAssetsUrl
GetStreamingAssetsUrl(string)
Converts a relative sub path within StreamingAssets and creates an absolute URI from it. Useful for loading via UnityWebRequests.
Declaration
public static string GetStreamingAssetsUrl(string subPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | subPath | Path, relative to StreamingAssets. Example: path/to/file.ktx |
Returns
| Type | Description |
|---|---|
| string | Platform independent URI that can be loaded via UnityWebRequest |