dragonBones.AttachUtil
Class
Module: dragonBones
Attach node tool
Index
Methods
getAttachedRootNode
Gets attached root node.getAttachedNodes
Gets attached node which you want.destroyAttachedNodes
Destroy attached node which you want.generateAttachedNodes
Traverse all bones to generate the minimum node tree containing the given bone names, NOTE that make sure the skeleton has initialized before calling this interface.destroyAllAttachedNodes
Destroy all attached node.generateAllAttachedNodes
Traverse all bones to generate a tree containing all bones nodes, NOTE that make sure the skeleton has initialized before calling this interface.
Details
Methods
getAttachedRootNode
Gets attached root node.
meta | description |
---|---|
Returns | cc.Node |
Defined in | extensions/dragonbones/AttachUtil.js:120 |
getAttachedNodes
Gets attached node which you want.
meta | description |
---|---|
Returns | Node[] |
Defined in | extensions/dragonbones/AttachUtil.js:130 |
Parameters
boneName
String
destroyAttachedNodes
Destroy attached node which you want.
meta | description |
---|---|
Defined in | extensions/dragonbones/AttachUtil.js:177 |
Parameters
boneName
String
generateAttachedNodes
Traverse all bones to generate the minimum node tree containing the given bone names, NOTE that make sure the skeleton has initialized before calling this interface.
meta | description |
---|---|
Returns | Node[] |
Defined in | extensions/dragonbones/AttachUtil.js:212 |
Parameters
boneName
String
destroyAllAttachedNodes
Destroy all attached node.
meta | description |
---|---|
Defined in | extensions/dragonbones/AttachUtil.js:286 |
generateAllAttachedNodes
Traverse all bones to generate a tree containing all bones nodes, NOTE that make sure the skeleton has initialized before calling this interface.
meta | description |
---|---|
Returns | cc.Node |
Defined in | extensions/dragonbones/AttachUtil.js:305 |