sp.AttachUtil 类型
模块: sp
挂点工具类
索引
方法
- getAttachedRootNode获取挂接节点树的根节点
- getAttachedNodes获得对应的挂点
- destroyAttachedNodes销毁对应的挂点
- generateAttachedNodes遍历所有插槽,生成包含所有给定插槽名称的最小节点树,注意,调用该接口前请确保骨骼动画已经初始化好。
- destroyAllAttachedNodes销毁所有挂点
- generateAllAttachedNodes遍历所有插槽,生成包含所有插槽的节点树,注意,调用该接口前请确保骨骼动画已经初始化好。
Details
方法
getAttachedRootNode
获取挂接节点树的根节点
| meta | description | 
|---|---|
| 返回 | cc.Node | 
| 定义于 | extensions/spine/AttachUtil.js:121 | 
getAttachedNodes
获得对应的挂点
| meta | description | 
|---|---|
| 返回 | Node[] | 
| 定义于 | extensions/spine/AttachUtil.js:131 | 
参数列表
- boneNameString
destroyAttachedNodes
销毁对应的挂点
| meta | description | 
|---|---|
| 定义于 | extensions/spine/AttachUtil.js:178 | 
参数列表
- boneNameString
generateAttachedNodes
遍历所有插槽,生成包含所有给定插槽名称的最小节点树,注意,调用该接口前请确保骨骼动画已经初始化好。
| meta | description | 
|---|---|
| 返回 | Node[] | 
| 定义于 | extensions/spine/AttachUtil.js:213 | 
参数列表
- boneNameString
destroyAllAttachedNodes
销毁所有挂点
| meta | description | 
|---|---|
| 定义于 | extensions/spine/AttachUtil.js:260 | 
generateAllAttachedNodes
遍历所有插槽,生成包含所有插槽的节点树,注意,调用该接口前请确保骨骼动画已经初始化好。
| meta | description | 
|---|---|
| 返回 | cc.Node | 
| 定义于 | extensions/spine/AttachUtil.js:279 | 
