url Class

Module: cc Parent Module: cc

Index

Properties
Methods
  • raw Returns 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
Examples
---
var url = cc.url.raw("textures/myTexture.png");
console.log(url);   // "resources/raw/textures/myTexture.png"

results matching ""

    No results matching ""