mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-01-27 21:31:02 +00:00
23 lines
28 KiB
HTML
23 lines
28 KiB
HTML
<!doctype html>
|
||
<html lang="zh" dir="ltr" class="docs-wrapper docs-doc-page docs-version-1.0.0 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">
|
||
<link rel="alternate" type="application/rss+xml" href="/cocos-service-pack/blog/rss.xml" title="Cocos Service Pack RSS Feed">
|
||
<link rel="alternate" type="application/atom+xml" href="/cocos-service-pack/blog/atom.xml" title="Cocos Service Pack Atom Feed"><title data-rh="true">介绍 | Cocos Service Pack</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-service-pack/docs/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="1.0.0"><meta data-rh="true" name="docusaurus_tag" content="docs-default-1.0.0"><meta data-rh="true" name="docsearch:version" content="1.0.0"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-1.0.0"><meta data-rh="true" property="og:title" content="介绍 | Cocos Service Pack"><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-service-pack/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://smallmain.github.io/cocos-service-pack/docs/intro"><link data-rh="true" rel="alternate" href="https://smallmain.github.io/cocos-service-pack/docs/intro" hreflang="zh"><link data-rh="true" rel="alternate" href="https://smallmain.github.io/cocos-service-pack/docs/intro" hreflang="x-default"><link rel="stylesheet" href="/cocos-service-pack/assets/css/styles.0d2d44fc.css">
|
||
<link rel="preload" href="/cocos-service-pack/assets/js/runtime~main.921d5a49.js" as="script">
|
||
<link rel="preload" href="/cocos-service-pack/assets/js/main.a60a3891.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-service-pack/"><div class="navbar__logo"><img src="/cocos-service-pack/img/logo.png" alt="Cocos Service Pack" class="themedImage_W2Cr themedImage--light_TfLj"><img src="/cocos-service-pack/img/logo.png" alt="Cocos Service Pack" class="themedImage_W2Cr themedImage--dark_oUvU"></div><b class="navbar__title text--truncate">Cocos Service Pack</b></a></div><div class="navbar__items navbar__items--right"><a class="navbar__item navbar__link" href="/cocos-service-pack/">首页</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/cocos-service-pack/docs/intro">文档</a><a href="https://smallmain.github.io/cocos-service-pack/demo/v1.0.0/web-desktop/index.html" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">演示</a><a class="navbar__item navbar__link" href="/cocos-service-pack/docs/intro">v1.0.0</a><a href="https://github.com/smallmain/cocos-service-pack" 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,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docsWrapper_mKqt"><button aria-label="回到顶部" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><div class="docPage_ualW"><aside class="theme-doc-sidebar-container docSidebarContainer_UQUJ"><div class="sidebar_RiAD"><nav class="menu thin-scrollbar menu_izAj"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/cocos-service-pack/docs/intro">介绍</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="true" href="/cocos-service-pack/docs/installation-guide/installation-intro">安装指南</a><button aria-label="打开/收起侧边栏菜单「安装指南」" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/installation-guide/installation-engine-plugin">使用引擎扩展安装</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/installation-guide/installation-manual">手动安装</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="true" href="/cocos-service-pack/docs/start-guide/start-guide-intro">入门教程</a><button aria-label="打开/收起侧边栏菜单「入门教程」" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/start-guide/batcher-guide">新 UI 渲染批次合并指南</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/start-guide/advance-batcher-guide">进阶合批指南</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/start-guide/new-features">上手其它新特性</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/cocos-service-pack/docs/start-guide/breaking-change">破坏性变更</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="true" href="/cocos-service-pack/docs/user-guide/user-guide-intro">使用指南</a><button aria-label="打开/收起侧边栏菜单「使用指南」" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" tabindex="0" href="/cocos-service-pack/docs/user-guide/multi-render/multi-render-intro">多纹理渲染</a><button aria-label="打开/收起侧边栏菜单「多纹理渲染」" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" tabindex="0" href="/cocos-service-pack/docs/user-guide/text-render/text-render-intro">文本渲染</a><button aria-label="打开/收起侧边栏菜单「文本渲染」" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" tabindex="0" href="/cocos-service-pack/docs/user-guide/dynamic-batcher/dynamic-batcher-intro">动态合图</a><button aria-label="打开/收起侧边栏菜单「动态合图」" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" tabindex="0" href="/cocos-service-pack/docs/user-guide/spine/spine-intro">Spine</a><button aria-label="打开/收起侧边栏菜单「Spine」" type="button" class="clean-btn menu__caret"></button></div></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/cocos-service-pack/docs/theory-guide/theory-guide-intro">原理文档</a><button aria-label="打开/收起侧边栏菜单「原理文档」" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/cocos-service-pack/docs/uninstall-guide">卸载指南</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/cocos-service-pack/docs/update-log">更新日志</a></li></ul></nav></div></aside><main class="docMainContainer_uL0j"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_DM6M"><div class="docItemContainer_vinB"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Xlws" aria-label="页面路径"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="主页面" class="breadcrumbs__link" href="/cocos-service-pack/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_kU5B"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">介绍</span><meta itemprop="position" content="1"></li></ul></nav><div class="tocCollapsible_bZGK theme-doc-toc-mobile tocMobile_TmEX"><button type="button" class="clean-btn tocCollapsibleButton_l22C">本页总览</button></div><div class="theme-doc-markdown markdown"><p><img loading="lazy" alt="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL8AAADjCAMAAADjeDW4AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAADJUExURUxpcQAAAAAAAAAAAAAAAAAAAAEAAAQAAAIAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAALOe4Ojo6AcDAAMAAAkFAQAAAMbGxhwVG0Y7VMzMyxEOCiAdGdva2oh2qHZ1clpYVT06OZSTkSsnKC8oN+Xl5by8u4OCgdfX19PT056LxN/f3xkVGq6urq+vraiV0ltPcKGgn2dlZHJijE9FYmdZfU9NTDc0MWhmY0xJRXxtm5OAtXFjjWtpZh8bGuXhx+AAAAAVdFJOUwDz+dOvBt6/PywPYOiPn08gfxfIcO2zVO4AAAzMSURBVHja7Z0Je5u6EobjfY2XJMeVk5rFGHAg8RrXWZtz/v+fuggEHwjwxccG6nv5nqdNHST5HWlmNAgnvSpUqFChQoUKFSp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UVORK5CYII=" width="191" height="227" class="img_E7b_"></p><p>这是一个提供 Cocos Creator 引擎特性增强、修复与优化的<strong>开源非官方服务包</strong>。</p><p>该项目使用自定义引擎的方式在符合原始引擎架构设计的基础上为 Cocos Creator 引擎加入新的特性、修复已知问题以及性能优化。</p><p>正因为如此,服务包中的大部分特性能像升级引擎版本一样无需改动项目代码即可生效。</p><div class="admonition admonition-info alert alert--info"><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="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>项目的起源</h5></div><div class="admonition-content"><p>2021 年 2 月,Cocos 发布 Cocos Creator 3.0,之后不会再开发 2.x 版本的新特性,但 2.x 在一些方面还并不完善,所以这个非官方的引擎“魔改”合集应运而生。</p><p>给项目取名的时候想到相似的事情发生在 2014 年 4 月,官方停止了对 Windows XP 的维护,之后 Harkaz 发布了一个非官方服务包 Service Pack 4 (SP4)。</p><p>受到这个命名的启发,遂项目取名为 Service Pack。</p></div></div><h2 class="anchor anchorWithStickyNavbar_mojV" id="重要特性">重要特性<a class="hash-link" href="#重要特性" title="标题的直接链接"></a></h2><ul><li><p><strong>支持多纹理渲染</strong>(多纹理材质、多纹理合批)
|
||
<img loading="lazy" alt="demo1" src="/cocos-service-pack/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-service-pack/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-service-pack/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-service-pack/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-service-pack/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.github.io/cocos-service-pack/demo/v1.0.0/web-desktop/index.html" target="_blank" rel="noopener noreferrer">Web Desktop 演示项目</a></p><p><a href="https://smallmain.github.io/cocos-service-pack/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-service-pack/docs/installation-guide/installation-intro">安装指南</a> 与 <a href="/cocos-service-pack/docs/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="service-pack-v100">Service Pack v1.0.0<a class="hash-link" href="#service-pack-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.MotionStreak、Spine 组件支持使用多纹理材质,并支持自动切换材质机制</li><li>[新特性]<!-- --> cc.RichText 支持使用自定义材质</li><li>[修复]<!-- --> 直接修改 Effect 的属性不回导致其变体的 hash 值刷新</li><li>[修复]<!-- --> CHAR 缓存模式 hash 计算可能会有重复的问题</li><li>[调整]<!-- --> 默认禁用 Label 原生 TTF 渲染器</li></ul><p><a href="https://smallmain.github.io/cocos-service-pack/docs/update-log" target="_blank" rel="noopener noreferrer">点此</a> 查看所有的更新日志。</p><h2 class="anchor anchorWithStickyNavbar_mojV" id="贡献指南">贡献指南<a class="hash-link" href="#贡献指南" title="标题的直接链接"></a></h2><p>非常欢迎你能和我们一起来完善这个项目,请通过 Github 进行:</p><ul><li>如果你发现了问题请建立 <code>Issues</code></li><li>如果你有好的想法,请进入 <code>Discussions</code></li><li>如果你有新的代码提交,请建立 <code>Pull requests</code></li></ul><p><strong>原则上你提交的任何修改都不能影响引擎原有功能,不允许删除引擎原有的特性,请认真思考代码设计。</strong></p><h2 class="anchor anchorWithStickyNavbar_mojV" id="常见问题">常见问题<a class="hash-link" href="#常见问题" title="标题的直接链接"></a></h2><h3 class="anchor anchorWithStickyNavbar_mojV" id="为什么要直接修改引擎">为什么要直接修改引擎?<a class="hash-link" href="#为什么要直接修改引擎" title="标题的直接链接"></a></h3><p>直接修改引擎可能是大部分人认为的下下策,比如我们常听到的:</p><ul><li>可以通过 “修改对象原型” 等编程技巧将改动做成一个插件脚本</li><li>没接触过自定义引擎,不知道该如何使用</li><li>已经修改过引擎了,不能直接进行标准安装,会覆盖原有的修改</li></ul><p>以上问题我们都思考过,首先,现在引擎的 2.x 版本已经停止了更新(仅做一些维护工作),也就是说修改引擎不会遇到在官方新版本发布后需要用大量时间去适配的情况。</p><p>其次,即使服务包的所有改动都能做成一个插件脚本,但无法兼容原生平台,并且一般都需要大量拷贝代码,包体会增大,可维护性会大幅降低。</p><p>最后,我们希望它接近 “原生” 的使用体验,就像引擎本来就有的功能一样,对于没有接触过自定义引擎的人,可以通过引擎扩展一键安装。</p><p>对于已经修改过引擎的人,由于服务包提供的是 Git Patch,所以可以让你在原有的基础上轻松应用服务包的改动,你甚至可以只选取你想要的特性进行应用。</p><h3 class="anchor anchorWithStickyNavbar_mojV" id="启动-cocos-creator-报-error-can-not-parse-this-inputundefined-错误">启动 Cocos Creator 报 Error: Can not parse this input:undefined 错误<a class="hash-link" href="#启动-cocos-creator-报-error-can-not-parse-this-inputundefined-错误" title="标题的直接链接"></a></h3><p>这是你可能忘记安装配套的引擎扩展,所以没有找到服务包的内置资源导致的报错。</p></div></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="文档分页导航"><a class="pagination-nav__link pagination-nav__link--next" href="/cocos-service-pack/docs/installation-guide/installation-intro"><div class="pagination-nav__sublabel">下一页</div><div class="pagination-nav__label">安装指南</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_cNA8 thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#重要特性" class="table-of-contents__link toc-highlight">重要特性</a></li><li><a href="#功能演示" class="table-of-contents__link toc-highlight">功能演示</a></li><li><a href="#使用方法" class="table-of-contents__link toc-highlight">使用方法</a></li><li><a href="#更新日志" class="table-of-contents__link toc-highlight">更新日志</a><ul><li><a href="#service-pack-v100" class="table-of-contents__link toc-highlight">Service Pack v1.0.0</a></li></ul></li><li><a href="#贡献指南" class="table-of-contents__link toc-highlight">贡献指南</a></li><li><a href="#常见问题" class="table-of-contents__link toc-highlight">常见问题</a><ul><li><a href="#为什么要直接修改引擎" class="table-of-contents__link toc-highlight">为什么要直接修改引擎?</a></li><li><a href="#启动-cocos-creator-报-error-can-not-parse-this-inputundefined-错误" class="table-of-contents__link toc-highlight">启动 Cocos Creator 报 Error: Can not parse this input:undefined 错误</a></li></ul></li></ul></div></div></div></div></main></div></div></div>
|
||
<script src="/cocos-service-pack/assets/js/runtime~main.921d5a49.js"></script>
|
||
<script src="/cocos-service-pack/assets/js/main.a60a3891.js"></script>
|
||
</body>
|
||
</html> |