名称修改为 enhance-kit

This commit is contained in:
SmallMain
2022-07-11 12:10:40 +08:00
parent 0420aa7b9c
commit fc960a3041
64 changed files with 203 additions and 197 deletions

View File

@@ -3,7 +3,7 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
# Spine
服务包解决了 Spine 在 Cocos Creator 中的三大痛点:
增强包解决了 Spine 在 Cocos Creator 中的三大痛点:
- 不参与动态合图
- 无法与其它组件合批

View File

@@ -79,7 +79,7 @@ a.getRegion(slotName, attachmentName);
如果你只想替换其中一个组件,那么就可以克隆这个 SkeletonData 让每个组件都使用不同的 SkeletonData 实例进行渲染。
服务包提供了一个克隆数据的接口来实现这个需求:
增强包提供了一个克隆数据的接口来实现这个需求:
```js
const clonedSkeletonData = skeletonData.clone();
@@ -88,4 +88,4 @@ const clonedSkeletonData = skeletonData.clone();
使用以上代码克隆 SkeletonData 后再进行换装,赋值给 Spine 组件,那么替换操作就只会对这个 Spine 组件生效。
---
以上所有用法你可以在 [演示项目](https://smallmain.gitee.io/cocos-service-pack/demo/v1.0.0/web-desktop/index.html) 中找到示范代码。
以上所有用法你可以在 [演示项目](https://smallmain.gitee.io/cocos-enhance-kit/demo/v1.0.0/web-desktop/index.html) 中找到示范代码。