dragonBones.AttachUtil Class
Module: dragonBones
Attach node tool
Index
Methods
- getAttachedRootNodeGets attached root node.
- getAttachedNodesGets attached node which you want.
- destroyAttachedNodesDestroy attached node which you want.
- generateAttachedNodesTraverse 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.
- destroyAllAttachedNodesDestroy all attached node.
- generateAllAttachedNodesTraverse 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
- boneNameString
destroyAttachedNodes
Destroy attached node which you want.
| meta | description | 
|---|---|
| Defined in | extensions/dragonbones/AttachUtil.js:177 | 
Parameters
- boneNameString
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
- boneNameString
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 | 
