url Class
Index
Properties
- _rawAssets- ObjectThe base url of raw assets.
Methods
- rawReturns the url of raw assets, you will only need this if the raw asset is inside the "resources" folder.
Details
Properties
_rawAssets
The base url of raw assets.
| meta | description | 
|---|---|
| Type | Object | 
| Defined in | cocos2d/core/platform/url.js:36 | 
Methods
raw
Returns the url of raw assets, you will only need this if the raw asset is inside the "resources" folder.
| meta | description | 
|---|---|
| Returns | String | 
| Defined in | cocos2d/core/platform/url.js:58 | 
Parameters
- urlString
Examples
---
var url = cc.url.raw("textures/myTexture.png");
console.log(url);   // "resources/raw/textures/myTexture.png"
