Cocos Creator API

1.2.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

RawAsset

模块: cc

注册用的资源基类。
你可能要重写:

  • createNode (static)

属性(properties)

_uuid String private

There are no properties that match your current filter settings. You can change your filter settings in the index section on this page. index

方法

createNodeByInfo
(
  • Info
  • callback
)
static

在场景中创建一个新节点。
如果这类资源没有相应的节点类型,该方法应该是空的。

名称 类型 描述
Info Object
callback Function
  • error String

    null or the error info

  • node Object

    the created node or null

isRawAssetType
(
  • ctor
)
Boolean private static

名称 类型 描述
ctor Function

返回:

类型: Boolean

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index