22 lines
27 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="zh" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-intro">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.20">
<title data-rh="true">介绍 | Cocos Enhance Kit</title><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://smallmain.github.io/cocos-enhance-kit/docs/next/intro"><meta data-rh="true" name="docusaurus_locale" content="zh"><meta data-rh="true" name="docsearch:language" content="zh"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="介绍 | Cocos Enhance Kit"><meta data-rh="true" name="description" content="logo"><meta data-rh="true" property="og:description" content="logo"><link data-rh="true" rel="icon" href="/cocos-enhance-kit/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://smallmain.github.io/cocos-enhance-kit/docs/next/intro"><link data-rh="true" rel="alternate" href="https://smallmain.github.io/cocos-enhance-kit/docs/next/intro" hreflang="zh"><link data-rh="true" rel="alternate" href="https://smallmain.github.io/cocos-enhance-kit/docs/next/intro" hreflang="x-default"><link rel="stylesheet" href="/cocos-enhance-kit/assets/css/styles.0677b958.css">
<link rel="preload" href="/cocos-enhance-kit/assets/js/runtime~main.ff486ebf.js" as="script">
<link rel="preload" href="/cocos-enhance-kit/assets/js/main.a2b8894d.js" as="script">
</head>
<body class="navigation-with-keyboard">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div role="region"><a href="#" class="skipToContent_ZgBM">跳到主要内容</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/cocos-enhance-kit/"><div class="navbar__logo"><img src="/cocos-enhance-kit/img/logo.png" alt="Cocos Enhance Kit" class="themedImage_W2Cr themedImage--light_TfLj"><img src="/cocos-enhance-kit/img/logo.png" alt="Cocos Enhance Kit" class="themedImage_W2Cr themedImage--dark_oUvU"></div><b class="navbar__title text--truncate">Cocos Enhance Kit</b></a></div><div class="navbar__items navbar__items--right"><a class="navbar__item navbar__link" href="/cocos-enhance-kit/">首页</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/cocos-enhance-kit/docs/next/intro">文档</a><a href="https://smallmain.gitee.io/cocos-enhance-kit/demo/v1.0.0/web-desktop/index.html" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">演示</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link" aria-haspopup="true" aria-expanded="false" role="button" href="/cocos-enhance-kit/docs/next/intro">Next</a><ul class="dropdown__menu"><li><a aria-current="page" class="dropdown__link dropdown__link--active" href="/cocos-enhance-kit/docs/next/intro">Next</a></li><li><a class="dropdown__link" href="/cocos-enhance-kit/docs/intro">v1.2.0</a></li><li><a class="dropdown__link" href="/cocos-enhance-kit/docs/1.1.0/intro">v1.1.0</a></li><li><a class="dropdown__link" href="/cocos-enhance-kit/docs/1.0.0/intro">v1.0.0</a></li></ul></div><a href="https://github.com/smallmain/cocos-enhance-kit" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link header-github-link">加星鼓励</a><div class="searchBox_dLyj"><div class="navbar__search searchBarContainer_NW3z"><input placeholder="搜索" aria-label="Search" class="navbar__search-input"><div class="loadingRing_RJI3 searchBarLoadingRing_YnHq"><div></div><div></div><div></div><div></div></div><div class="searchHintContainer_Pkmr"><kbd class="searchHint_iIMx">ctrl</kbd><kbd class="searchHint_iIMx">K</kbd></div></div></div><div class="toggle_S7eR colorModeToggle_vKtC"><button class="clean-btn toggleButton_rCf9 toggleButtonDisabled_Pu9x" type="button" disabled="" title="切换浅色/暗黑模式(当前为浅色模式)" aria-label="切换浅色/暗黑模式(当前为浅色模式)"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_v35p"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_nQuB"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,1
<img loading="lazy" alt="demo1" src="/cocos-enhance-kit/assets/images/demo1-458cc9beda63cfd491b25de86bf2593c.png" width="1918" height="1198" class="img_E7b_"></p></li><li><p><strong>支持高 DPI 文本渲染</strong>Label、RichText 组件)
<img loading="lazy" alt="demo4" src="/cocos-enhance-kit/assets/images/demo4-5a9ef2c1b76818302f5c5e2d745ede2a.png" width="1924" height="1200" class="img_E7b_"></p></li><li><p><strong>重构动态合图</strong>(支持自动多纹理合批、优化算法、复用废弃空间等特性)
<img loading="lazy" alt="demo2" src="/cocos-enhance-kit/assets/images/demo2-b23bb05bb434ce25ef290d2f30cc028c.png" width="1894" height="1200" class="img_E7b_"></p></li><li><p><strong>重构 Label 组件的 CHAR 缓存模式</strong>(支持自动多纹理合批、多图集、复用废弃空间等特性)
<img loading="lazy" alt="demo3" src="/cocos-enhance-kit/assets/images/demo3-e616d6a6d0bd2bfbceb2db57b38fec91.png" width="1918" height="1200" class="img_E7b_"></p></li><li><p><strong>Spine 组件支持与其它组件合批、合入动态图集与 SpriteFrame 换装</strong>
<img loading="lazy" alt="demo5" src="/cocos-enhance-kit/assets/images/demo5-7588adeef99924536d52fb590a4c2813.png" width="1922" height="1202" class="img_E7b_"></p></li></ul><h2 class="anchor anchorWithStickyNavbar_mojV" id="功能演示">功能演示<a class="hash-link" href="#功能演示" title="标题的直接链接"></a></h2><p><a href="https://smallmain.gitee.io/cocos-enhance-kit/demo/v1.0.0/web-desktop/index.html" target="_blank" rel="noopener noreferrer">Web Desktop 演示项目</a></p><p><a href="https://smallmain.gitee.io/cocos-enhance-kit/demo/v1.0.0/web-mobile/index.html" target="_blank" rel="noopener noreferrer">Web Mobile 演示项目</a>(请将设备横屏)</p><div class="admonition admonition-note alert alert--secondary"><div class="admonition-heading"><h5><span class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>提示</h5></div><div class="admonition-content"><p>增强包对引擎的改动完全开源,每个改动会带有原理说明文档,当你发现问题时请与我们进行反馈,如果你有兴致,可以默默帅气地提交一个 PR帮助我们一起完善这个项目。</p></div></div><h2 class="anchor anchorWithStickyNavbar_mojV" id="使用方法">使用方法<a class="hash-link" href="#使用方法" title="标题的直接链接"></a></h2><p>请阅读文档的 <a href="/cocos-enhance-kit/docs/next/installation-guide/installation-intro">安装指南</a><a href="/cocos-enhance-kit/docs/next/start-guide/start-guide-intro">入门教程</a></p><h2 class="anchor anchorWithStickyNavbar_mojV" id="更新日志">更新日志<a class="hash-link" href="#更新日志" title="标题的直接链接"></a></h2><h3 class="anchor anchorWithStickyNavbar_mojV" id="enhance-kit-v120">Enhance Kit v1.2.0<a class="hash-link" href="#enhance-kit-v120" title="标题的直接链接"></a></h3><ul><li><strong>[新特性]<!-- --> cc.TiledLayer 支持复用 Culling 数据</strong></li><li>[修复]<!-- --> 修复 MotionStreak 初始化报错的问题</li><li>[修复]<!-- --> 修复勾选延迟加载资源时资源不会加载的问题</li></ul><h3 class="anchor anchorWithStickyNavbar_mojV" id="enhance-kit-v110">Enhance Kit v1.1.0<a class="hash-link" href="#enhance-kit-v110" title="标题的直接链接"></a></h3><ul><li><strong>[新特性]<!-- --> 动态合图在符合条件的情况下会忽略 padding 将纹理加入动态图集</strong></li><li>[修复]<!-- --> 修复动态图集 maxFrameSize 能设置为超出图集尺寸大小的问题</li><li>[修复]<!-- --> 修复 Spine 动态合图时未判断 attachment 是否存在 region 对象导致报错的问题</li><li>[修复]<!-- --> 修复 Android 平台打包出现 Implicit instantiation of undefined template 错误</li></ul><h3 class="anchor anchorWithStickyNavbar_mojV" id="enhance-kit-v100">Enhance Kit v1.0.0<a class="hash-link" href="#enhance-kit-v100" title="标题的直接链接"></a></h3><ul><li><strong>[新特性]<!-- --> 支持多纹理渲染</strong></li><li><strong>[新特性]<!-- --> 重构动态图集,支持多个新特性</strong></li><li><strong>[新特性]<!-- --> 重构 cc.Label 的 Char 缓存模式,支持多个新特性</strong></li><li><strong>[新特性]<!-- --> 支持高 DPI 文本渲染</strong></li><li><strong>[新特性]<!-- --> Spine 组件支持参与动态图集、与其它组件合批、使用 SpriteFrame 换装</strong></li><li>[新特性]<!-- --> cc.Label、cc.RichText、cc.Sprite、cc.MotionStrea
<script src="/cocos-enhance-kit/assets/js/runtime~main.ff486ebf.js"></script>
<script src="/cocos-enhance-kit/assets/js/main.a2b8894d.js"></script>
</body>
</html>