cocos-enhance-kit/assets/js/399eddc3.f3a3a861.js
2024-12-20 14:47:15 +08:00

1 line
23 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6990],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return m}});var l=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,l,a=function(e,t){if(null==e)return{};var n,l,a={},r=Object.keys(e);for(l=0;l<r.length;l++)n=r[l],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)n=r[l],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var o=l.createContext({}),u=function(e){var t=l.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=u(e.components);return l.createElement(o.Provider,{value:t},e.children)},k={inlineCode:"code",wrapper:function(e){var t=e.children;return l.createElement(l.Fragment,{},t)}},c=l.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,o=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),c=u(n),m=a,d=c["".concat(o,".").concat(m)]||c[m]||k[m]||r;return n?l.createElement(d,i(i({ref:t},s),{},{components:n})):l.createElement(d,i({ref:t},s))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var r=n.length,i=new Array(r);i[0]=c;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p.mdxType="string"==typeof e?e:a,i[1]=p;for(var u=2;u<r;u++)i[u]=n[u];return l.createElement.apply(null,i)}return l.createElement.apply(null,n)}c.displayName="MDXCreateElement"},74140:function(e,t,n){n.r(t),n.d(t,{assets:function(){return s},contentTitle:function(){return o},default:function(){return m},frontMatter:function(){return p},metadata:function(){return u},toc:function(){return k}});var l=n(87462),a=n(63366),r=(n(67294),n(3905)),i=["components"],p={sidebar_position:1,title:"\u4ecb\u7ecd",hide_title:!0},o=void 0,u={unversionedId:"intro",id:"version-3.0.0/intro",title:"\u4ecb\u7ecd",description:"logo",source:"@site/versioned_docs/version-3.0.0/intro.md",sourceDirName:".",slug:"/intro",permalink:"/cocos-enhance-kit/docs/intro",draft:!1,tags:[],version:"3.0.0",sidebarPosition:1,frontMatter:{sidebar_position:1,title:"\u4ecb\u7ecd",hide_title:!0},sidebar:"tutorialSidebar",next:{title:"\u4e00\u952e\u5b89\u88c5",permalink:"/cocos-enhance-kit/docs/installation/installation-auto"}},s={},k=[{value:"\u4e3b\u8981\u7279\u6027",id:"\u4e3b\u8981\u7279\u6027",level:2},{value:"\u5b8c\u5168\u517c\u5bb9",id:"\u5b8c\u5168\u517c\u5bb9",level:3},{value:"\u652f\u6301\u591a\u7eb9\u7406\u6e32\u67d3",id:"\u652f\u6301\u591a\u7eb9\u7406\u6e32\u67d3",level:3},{value:"\u652f\u6301\u9ad8\u6e05\u6587\u672c\u6e32\u67d3",id:"\u652f\u6301\u9ad8\u6e05\u6587\u672c\u6e32\u67d3",level:3},{value:"\u52a8\u6001\u5408\u56fe\u589e\u5f3a",id:"\u52a8\u6001\u5408\u56fe\u589e\u5f3a",level:3},{value:"Label \u7ec4\u4ef6\u589e\u5f3a",id:"label-\u7ec4\u4ef6\u589e\u5f3a",level:3},{value:"Spine \u7ec4\u4ef6\u589e\u5f3a",id:"spine-\u7ec4\u4ef6\u589e\u5f3a",level:3},{value:"TiledMap \u7ec4\u4ef6\u4f18\u5316",id:"tiledmap-\u7ec4\u4ef6\u4f18\u5316",level:3},{value:"\u6027\u80fd\u6307\u793a\u5668\u589e\u5f3a",id:"\u6027\u80fd\u6307\u793a\u5668\u589e\u5f3a",level:3},{value:"\u591a\u7ebf\u7a0b\u652f\u6301",id:"\u591a\u7ebf\u7a0b\u652f\u6301",level:3},{value:"\u4f7f\u7528\u65b9\u6cd5",id:"\u4f7f\u7528\u65b9\u6cd5",level:2},{value:"\u8d21\u732e\u6307\u5357",id:"\u8d21\u732e\u6307\u5357",level:2},{value:"\u5e38\u89c1\u95ee\u9898",id:"\u5e38\u89c1\u95ee\u9898",level:2},{value:"\u652f\u6301\u6211\u4eec",id:"\u652f\u6301\u6211\u4eec",level:2}],c={toc:k};function m(e){var t=e.components,p=(0,a.Z)(e,i);return(0,r.kt)("wrapper",(0,l.Z)({},c,p,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("br",null),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"logo",src:n(57558).Z,width:"208",height:"304"})),(0,r.kt)("p",null,"\u8fd9\u662f ",(0,r.kt)("a",{parentName:"p",href:"https://www.cocos.com/creator"},"Cocos Creator")," v2.x \u793e\u533a\u5206\u53c9\u7248\u672c\uff0c",(0,r.kt)("strong",{parentName:"p"},"\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u65b0\u7279\u6027\u3001\u6027\u80fd\u6539\u8fdb\u4e0e\u4fee\u590d"),"\u3002"),(0,r.kt)("p",null,"\u672a\u6765\u5c06\u7ee7\u7eed\u79c9\u6301\u7740",(0,r.kt)("strong",{parentName:"p"},"\u5b8c\u5168\u5f00\u6e90\u3001\u5b8c\u5168\u517c\u5bb9"),"\u7684\u7406\u5ff5\u63d0\u4f9b\u65b0\u7279\u6027\u3001\u4f18\u5316\u4e0e\u4fee\u590d\u3002"),(0,r.kt)("p",null,"\u975e\u5e38\u6b22\u8fce\u4f60\u80fd\u548c\u6211\u4eec\u4e00\u8d77\u6765\u5b8c\u5584\u8fd9\u4e2a\u9879\u76ee\uff01"),(0,r.kt)("h2",{id:"\u4e3b\u8981\u7279\u6027"},"\u4e3b\u8981\u7279\u6027"),(0,r.kt)("h3",{id:"\u5b8c\u5168\u517c\u5bb9"},"\u5b8c\u5168\u517c\u5bb9"),(0,r.kt)("p",null,"\u793e\u533a\u7248\u7684\u73b0\u5728\u4e43\u81f3\u672a\u6765\u90fd\u4f1a\u505a\u5230\u4ee5\u4e0b\u51e0\u70b9\uff1a"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"\u517c\u5bb9\u65e7\u9879\u76ee\uff0c\u65e0\u9700\u6539\u52a8\u9879\u76ee\u4ee3\u7801\u5373\u53ef\u5207\u6362\u5230\u793e\u533a\u7248\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u4e0d\u4f1a\u5bf9\u9879\u76ee\u672c\u8eab\u8fdb\u884c\u4efb\u4f55\u6539\u52a8\uff0c\u968f\u65f6\u53ef\u4ee5\u5207\u6362\u56de\u5b98\u65b9\u7248\u3002"),(0,r.kt)("li",{parentName:"ul"},"\u4efb\u4f55\u7279\u6027\u90fd\u53ef\u4ee5\u9009\u62e9\u6027\u5f00\u542f\uff0c\u4fdd\u8bc1\u9879\u76ee\u7684\u53ef\u63a7\u6027\u3002")),(0,r.kt)("p",null,"\u5e76\u4e14\u5168\u5e73\u53f0\u517c\u5bb9\uff01"),(0,r.kt)("h3",{id:"\u652f\u6301\u591a\u7eb9\u7406\u6e32\u67d3"},"\u652f\u6301\u591a\u7eb9\u7406\u6e32\u67d3"),(0,r.kt)("p",null,"\u5728\u4e4b\u524d\uff0c\u6bcf\u4e2a\u76f8\u90bb\u7684\u8282\u70b9\u4f7f\u7528\u4e0d\u540c\u7684\u7eb9\u7406\u6e32\u67d3\u65f6\u4f1a\u6253\u65ad\u5408\u6279\uff0c\u6211\u4eec\u4e00\u822c\u901a\u8fc7\u8c03\u8282\u8282\u70b9\u987a\u5e8f\u3001\u5408\u5e76\u56fe\u96c6\u7684\u65b9\u5f0f\u6765\u907f\u514d\u8fd9\u4e2a\u95ee\u9898\u3002"),(0,r.kt)("p",null,"\u4f46\u662f\u5b9e\u9645\u5e94\u7528\u8d77\u6765\u60c5\u51b5\u590d\u6742\uff0c\u4e14\u64cd\u4f5c\u9ebb\u70e6\uff0c\u65e0\u6cd5\u4f18\u5316\u5230\u6781\u81f4\uff0c\u800c\u8f83\u9ad8\u7684 DrawCall \u6570\u91cf\u4f1a\u5bfc\u81f4\u8bbe\u5907\u6027\u80fd\u4e0b\u964d\u3001\u53d1\u70ed\u7684\u95ee\u9898\u3002"),(0,r.kt)("p",null,"\u73b0\u5728\uff0c\u7531\u4e8e\u652f\u6301\u4e86\u591a\u7eb9\u7406\u6e32\u67d3\uff0c\u53ef\u5141\u8bb8\u591a\u8fbe 8 \u5f20\u4e0d\u540c\u7eb9\u7406\u8fdb\u884c\u6e32\u67d3\u65f6\u4e5f\u4e0d\u4f1a\u6253\u65ad\u5408\u6279\uff0c",(0,r.kt)("strong",{parentName:"p"},"\u5728\u6700\u574f\u7684\u60c5\u51b5\u4e0b\uff0c\u4e5f\u80fd\u5c06\u9879\u76ee\u7684 DrawCall \u6570\u91cf\u51cf\u5c11\u81f3 1/8"),"\uff01"),(0,r.kt)("p",null,"\u5e76\u4e14\uff0c\u8be5\u7279\u6027\u5728\u4f7f\u7528\u52a8\u6001\u5408\u56fe\u65f6\u4f1a\u81ea\u52a8\u542f\u7528\uff0c\u65e0\u9700\u4efb\u4f55\u6539\u52a8\u5373\u53ef\u5f97\u5230\u4f18\u5316\u6548\u679c\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo1",src:n(45637).Z,width:"1918",height:"1198"})),(0,r.kt)("h3",{id:"\u652f\u6301\u9ad8\u6e05\u6587\u672c\u6e32\u67d3"},"\u652f\u6301\u9ad8\u6e05\u6587\u672c\u6e32\u67d3"),(0,r.kt)("p",null,"\u5728\u4e4b\u524d\uff0cCocos Creator \u5f15\u64ce\u9ed8\u8ba4\u4ee5 1x \u7684\u5206\u8fa8\u7387\u6e32\u67d3\u5b57\u4f53\uff0c\u6240\u4ee5\u6709\u65f6\u5019\u5728\u67d0\u4e9b ",(0,r.kt)("inlineCode",{parentName:"p"},"Retina")," \u8bbe\u5907\u4e0a\u4f1a\u611f\u89c9\u5230\u5b57\u4f53\u5f88\u6a21\u7cca\u3002"),(0,r.kt)("p",null,"\u7531\u4e8e\u5f15\u64ce\u672c\u8eab\u4e0d\u652f\u6301\u5bf9\u5176\u8fdb\u884c\u8c03\u8282\uff0c\u6211\u4eec\u4f1a\u901a\u8fc7\u5c06 Label \u7684 ",(0,r.kt)("inlineCode",{parentName:"p"},"fontSize")," \u653e\u5927\u4e00\u500d\uff0c\u7136\u540e\u5c06 ",(0,r.kt)("inlineCode",{parentName:"p"},"scale")," \u7f29\u5c0f\u4e00\u500d\u7684\u65b9\u5f0f\u89e3\u51b3\u5b57\u4f53\u6e32\u67d3\u6a21\u7cca\u7684\u95ee\u9898\u3002"),(0,r.kt)("p",null,"\u73b0\u5728\uff0c\u589e\u52a0\u4e86\u9ad8\u6e05\u6587\u672c\u6e32\u67d3\u7684\u652f\u6301\uff0c\u4f60\u53ea\u9700\u8981\u901a\u8fc7\u4e00\u53e5\u4ee3\u7801\uff1a"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-ts"},"cc.sp.labelRetinaScale = 2;\n")),(0,r.kt)("p",null,"\u5373\u53ef\u8c03\u6574\u5f15\u64ce\u6587\u672c\u6e32\u67d3\u7684\u5206\u8fa8\u7387\uff0c\u83b7\u5f97\u9ad8\u6e05\u7684\u6587\u672c\u6e32\u67d3\u6548\u679c\u3002"),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo4",src:n(44927).Z,width:"1924",height:"1200"})),(0,r.kt)("h3",{id:"\u52a8\u6001\u5408\u56fe\u589e\u5f3a"},"\u52a8\u6001\u5408\u56fe\u589e\u5f3a"),(0,r.kt)("p",null,"\u9664\u4e86\u4e0a\u9762\u63d0\u5230\u5c06\u52a8\u6001\u5408\u56fe\u652f\u6301\u4e86\u81ea\u52a8\u591a\u7eb9\u7406\u6e32\u67d3\u4e4b\u5916\uff0c\u6211\u4eec\u5176\u5b9e\u51e0\u4e4e\u91cd\u6784\u4e86\u6574\u4e2a\u52a8\u6001\u5408\u56fe\u6a21\u5757\u3002"),(0,r.kt)("p",null,"\u73b0\u5728\u7684\u52a8\u6001\u5408\u56fe\u5373\u4f18\u5316\u4e86\u7b97\u6cd5\uff0c\u8fd8",(0,r.kt)("strong",{parentName:"p"},"\u652f\u6301\u5e9f\u5f03\u7a7a\u95f4\u590d\u7528"),"\uff0c\u8fd9\u5bf9\u4e8e\u9879\u76ee\u7684\u6027\u80fd\u4f18\u5316\u7a7a\u95f4\u7684\u63d0\u5347\u662f\u5de8\u5927\u7684\u3002"),(0,r.kt)("p",null,"\u5e76\u4e14\uff0c",(0,r.kt)("strong",{parentName:"p"},"Spine \u73b0\u5728\u4e5f\u53ef\u4ee5\u53c2\u4e0e\u52a8\u6001\u5408\u56fe"),"\u4e86\uff01"),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo2",src:n(48039).Z,width:"1894",height:"1200"})),(0,r.kt)("h3",{id:"label-\u7ec4\u4ef6\u589e\u5f3a"},"Label \u7ec4\u4ef6\u589e\u5f3a"),(0,r.kt)("p",null,"Label \u4e00\u76f4\u662f\u9879\u76ee\u4f18\u5316\u7684\u6700\u96be\u70b9\uff0c\u56e0\u4e3a\u5b83\u5b8c\u5168\u4e0d\u80fd\u548c\u5176\u5b83\u7684\u6e32\u67d3\u7ec4\u4ef6\u8fdb\u884c\u5408\u6279\uff0c\u751a\u81f3\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u4e5f\u4e0d\u80fd\u548c\u5176\u5b83 Label \u7ec4\u4ef6\u5408\u6279\u3002"),(0,r.kt)("p",null,"\u5728\u4e4b\u524d\uff0c\u4f7f\u7528 ",(0,r.kt)("inlineCode",{parentName:"p"},"Bitmap")," \u6a21\u5f0f\u53ef\u4ee5\u52a0\u5165\u52a8\u6001\u5408\u56fe\uff0c\u4ee5\u8fbe\u5230\u5408\u6279\u7684\u76ee\u7684\uff0c\u4f46\u53d7\u5f15\u64ce\u52a8\u6001\u5408\u56fe\u4e0d\u80fd\u590d\u7528\u5e9f\u5f03\u7a7a\u95f4\u7684\u9650\u5236\uff0c\u5bfc\u81f4\u9879\u76ee\u8d8a\u8fd0\u884c\uff0c\u53ef\u4ee5\u52a8\u6001\u5408\u56fe\u7684\u7a7a\u95f4\u5c31\u8d8a\u5c0f\uff0c\u5f88\u5bb9\u6613\u5c31\u4f1a\u5c06\u52a8\u6001\u56fe\u96c6\u585e\u6ee1\uff0c\u6240\u4ee5\u57fa\u672c\u4e0d\u4f1a\u5728\u5b9e\u9645\u7684\u9879\u76ee\u4e2d\u4f7f\u7528\u3002"),(0,r.kt)("p",null,(0,r.kt)("inlineCode",{parentName:"p"},"Char")," \u6a21\u5f0f\u4e5f\u6709\u7c7b\u4f3c\u7684\u95ee\u9898\uff0c\u5185\u90e8\u7684\u5b57\u7b26\u7eb9\u7406\u5373\u4e0d\u652f\u6301\u590d\u7528\uff0c\u8fd8\u6700\u9ad8\u4ec5\u652f\u6301 1 \u5f20\u7eb9\u7406\uff0c\u7eb9\u7406\u5f88\u5bb9\u6613\u5c31\u88ab\u586b\u6ee1\u5bfc\u81f4\u65e0\u6cd5\u6e32\u67d3\u6587\u672c\uff0c\u4e0d\u4f1a\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\u3002"),(0,r.kt)("p",null,"\u4f46\u662f\u73b0\u5728\uff0cLabel \u5f97\u5230\u4e86\u4ee5\u4e0b\u91cd\u5927\u7684\u6539\u8fdb\uff1a"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"\u91cd\u6784\u540e\u7684\u52a8\u6001\u5408\u56fe\u652f\u6301\u590d\u7528\uff0c",(0,r.kt)("inlineCode",{parentName:"li"},"Bitmap")," \u6a21\u5f0f\u7684\u4f7f\u7528\u4e0d\u518d\u53d7\u9650\uff01"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"Char")," \u6a21\u5f0f\u5f97\u5230\u91cd\u6784\uff0c",(0,r.kt)("strong",{parentName:"li"},"\u652f\u6301\u5e9f\u5f03\u7a7a\u95f4\u590d\u7528\uff0c\u652f\u6301\u6700\u591a 8 \u5f20\u5b57\u7b26\u7eb9\u7406\uff0c\u652f\u6301\u81ea\u52a8\u591a\u7eb9\u7406\u5408\u6279"),"\uff01"),(0,r.kt)("li",{parentName:"ul"},"RichText \u4e5f\u5f97\u5230\u540c\u6837\u7684\u6240\u6709\u6539\u8fdb\uff0c\u5e76\u4e14\u5f00\u653e\u4e86\u81ea\u5b9a\u4e49\u6750\u8d28\u7684\u8bbe\u7f6e\u3002")),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo3",src:n(98549).Z,width:"1918",height:"1200"})),(0,r.kt)("p",null,"\u9664\u4e86\u4ee5\u4e0a\u4f18\u5316\u4e4b\u5916\uff0c\u5728 v3.x \u7248\u672c\u4e2d\uff0c\u8fd8\u652f\u6301\u4e86",(0,r.kt)("strong",{parentName:"p"},"\u6587\u672c\u6d4b\u91cf\u503c\u70d8\u7119"),"\u548c",(0,r.kt)("strong",{parentName:"p"},"\u9884\u52a0\u8f7d Label Canvas \u548c ",(0,r.kt)("inlineCode",{parentName:"strong"},"Char")," \u56fe\u96c6"),"\u3002"),(0,r.kt)("p",null,"\u8fd9\u4e24\u9879\u4f18\u5316\u53ef\u5927\u5e45\u964d\u4f4e\u6587\u672c\u6e32\u67d3\u5728\u4f4e\u7aef\u8bbe\u5907\u4e0a\u7684\u6027\u80fd\u6d88\u8017\uff0c\u4f7f\u6e38\u620f\u754c\u9762\u6253\u5f00\u65f6\u4e0d\u518d\u5361\u987f\u3002"),(0,r.kt)("h3",{id:"spine-\u7ec4\u4ef6\u589e\u5f3a"},"Spine \u7ec4\u4ef6\u589e\u5f3a"),(0,r.kt)("p",null,"\u9664\u4e86 Label \u4e4b\u5916\uff0c\u5982\u679c\u4f60\u7684\u9879\u76ee\u7528\u5230\u4e86 Spine \u7ec4\u4ef6\uff0c\u90a3\u4e48\u5b83\u5927\u6982\u7387\u4f1a\u6210\u4e3a\u9879\u76ee\u7b2c\u4e8c\u4e2a\u4f18\u5316\u96be\u70b9\u3002"),(0,r.kt)("p",null,"\u73b0\u5728\uff0cSpine \u4e5f\u5f97\u5230\u4e86\u91cd\u5927\u6539\u8fdb\uff0c",(0,r.kt)("strong",{parentName:"p"},"\u652f\u6301\u4e0e\u5176\u5b83\u7ec4\u4ef6\u5408\u6279\uff0c\u652f\u6301\u53c2\u4e0e\u52a8\u6001\u5408\u56fe\uff0c\u8fd8\u80fd\u65e0\u7f1d\u4f7f\u7528 SpriteFrame \u8fdb\u884c\u6362\u88c5"),"\uff01"),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo5",src:n(56908).Z,width:"1922",height:"1202"})),(0,r.kt)("h3",{id:"tiledmap-\u7ec4\u4ef6\u4f18\u5316"},"TiledMap \u7ec4\u4ef6\u4f18\u5316"),(0,r.kt)("p",null,"\u5355\u4e2a TiledMap \u7ec4\u4ef6\u53ef\u80fd\u5b58\u5728\u591a\u4e2a TiledLayer\uff0c\u542f\u7528 Culling \u7279\u6027\u540e\uff0c\u6bcf\u4e2a Layer \u90fd\u9700\u8981\u5355\u72ec\u8ba1\u7b97 Culling \u6570\u636e\u3002"),(0,r.kt)("p",null,"\u73b0\u5728\u5728\u6ee1\u8db3\u6761\u4ef6\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u590d\u7528 Culling \u6570\u636e\uff0c\u4ee5\u51cf\u5c11\u9879\u76ee CPU \u7684\u6027\u80fd\u6d88\u8017\u3002"),(0,r.kt)("h3",{id:"\u6027\u80fd\u6307\u793a\u5668\u589e\u5f3a"},"\u6027\u80fd\u6307\u793a\u5668\u589e\u5f3a"),(0,r.kt)("p",null,"\u793e\u533a\u7248\u4f18\u5316\u4e86\u5f15\u64ce\u81ea\u5e26\u7684\u6027\u80fd\u6307\u793a\u5668\uff0c\u589e\u52a0\u4e86\u4e09\u4e2a\u91cd\u8981\u7684\u6027\u80fd\u6307\u6807\uff1a"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"Label Canvas\uff08Label \u7ec4\u4ef6\u7684 Canvas \u6570\u91cf\uff09"),(0,r.kt)("li",{parentName:"ul"},"Char Atlas\uff08Char \u5b57\u7b26\u56fe\u96c6\u4f7f\u7528\u60c5\u51b5\uff09"),(0,r.kt)("li",{parentName:"ul"},"Dynamic Atlas\uff08\u52a8\u6001\u56fe\u96c6\u4f7f\u7528\u60c5\u51b5\uff09")),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"demo6",src:n(79890).Z,width:"350",height:"152"})),(0,r.kt)("h3",{id:"\u591a\u7ebf\u7a0b\u652f\u6301"},"\u591a\u7ebf\u7a0b\u652f\u6301"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u73b0\u5728\uff0c\u4ee5\u4e0b\u5f15\u64ce\u7684\u90e8\u5206\u589e\u52a0\u4e86\u591a\u7ebf\u7a0b\u652f\u6301\uff1a")),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"\u8d44\u6e90\u7ba1\u7ebf\uff08\u4e0b\u8f7d\u4e0e\u7f13\u5b58\u90e8\u5206\uff09")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"\u97f3\u9891\u7cfb\u7edf")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"XMLHttpRequest")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"WebSocket"))),(0,r.kt)("p",null,"\u542f\u7528\u540e\u53ef\u4ee5\u91ca\u653e\u5176\u5bf9\u4e3b\u7ebf\u7a0b\u7684\u5360\u7528\uff0c\u51cf\u5c11\u5361\u987f\u73b0\u8c61\u3002"),(0,r.kt)("p",null,"\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8",(0,r.kt)("strong",{parentName:"p"},"\u652f\u6301\u81ea\u5b9a\u4e49\u591a\u7ebf\u7a0b\u6269\u5c55"),"\uff0c\u5927\u5e45\u7b80\u5316\u4e86\u5c06\u9879\u76ee\u903b\u8f91\u591a\u7ebf\u7a0b\u5316\u6240\u9700\u7684\u6b65\u9aa4\uff01"),(0,r.kt)("p",null,"\u5e76\u4e14\u5728\u5fae\u4fe1\u5c0f\u6e38\u620f\u5e73\u53f0\u4e0b\u8fd8\u6709\u4ee5\u4e0b\u6539\u8fdb\uff1a"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"\u9ed8\u8ba4\u542f\u7528\u7f51\u7edc\u63a5\u53e3\u548c\u97f3\u9891\u63a5\u53e3\u7684\u9ad8\u6027\u80fd\u6a21\u5f0f")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"\u7f51\u7edc\u63a5\u53e3\u652f\u6301 HTTP/2\u3001HTTP/3(QUIC) \u534f\u8bae"))),(0,r.kt)("h2",{id:"\u4f7f\u7528\u65b9\u6cd5"},"\u4f7f\u7528\u65b9\u6cd5"),(0,r.kt)("p",null,"\u8bf7\u9605\u8bfb\u6587\u6863\u7684 ",(0,r.kt)("a",{parentName:"p",href:"./installation/installation-auto"},"\u4e00\u952e\u5b89\u88c5"),"\u3002"),(0,r.kt)("h2",{id:"\u8d21\u732e\u6307\u5357"},"\u8d21\u732e\u6307\u5357"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u8005\u60f3\u6cd5\u8bf7\u5efa\u7acb\u65b0\u7684 ",(0,r.kt)("inlineCode",{parentName:"li"},"Issues"),"\uff0c\u6211\u4eec\u4f1a\u5c3d\u81ea\u5df1\u6240\u80fd\u5e2e\u52a9\u4f60\uff01"),(0,r.kt)("li",{parentName:"ul"},"\u5982\u679c\u4f60\u6709\u65b0\u7684\u4ee3\u7801\u63d0\u4ea4\uff0c\u8bf7\u5efa\u7acb\u65b0\u7684 ",(0,r.kt)("inlineCode",{parentName:"li"},"Pull requests")," \u4ee5\u5b8c\u6210\u5408\u5e76\u3002")),(0,r.kt)("h2",{id:"\u5e38\u89c1\u95ee\u9898"},"\u5e38\u89c1\u95ee\u9898"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u4e3a\u4ec0\u4e48\u8981\u76f4\u63a5\u4fee\u6539\u5f15\u64ce\uff1f")),(0,r.kt)("p",null,"\u5b98\u65b9\u5bf9 2.x \u7248\u672c\u5df2\u7ecf\u505c\u6b62\u4e86\u66f4\u65b0\uff08\u4ec5\u505a\u4e00\u4e9b\u7ef4\u62a4\u5de5\u4f5c\uff09\uff0c\u4fee\u6539\u5f15\u64ce\u4e0d\u4f1a\u9047\u5230\u5728\u5b98\u65b9\u65b0\u7248\u672c\u53d1\u5e03\u540e\u9700\u8981\u7528\u5927\u91cf\u65f6\u95f4\u53bb\u9002\u914d\uff0c\u6216\u8005\u7279\u6027\u51b2\u7a81\u7684\u95ee\u9898\u3002"),(0,r.kt)("p",null,"\u5982\u679c\u4e0d\u81ea\u5b9a\u4e49\u5f15\u64ce\uff0c\u5219\u65e0\u6cd5\u517c\u5bb9\u539f\u751f\u5e73\u53f0\uff0c\u5373\u4f7f\u4e0d\u517c\u5bb9\uff0c\u4f7f\u7528 Hack \u7684\u65b9\u5f0f\uff0c\u67d0\u4e9b\u7279\u6027\u7684\u5b9e\u73b0\u9700\u8981\u5927\u91cf\u62f7\u8d1d\u4ee3\u7801\uff0c\u5305\u4f53\u4f1a\u589e\u5927\uff0c\u53ef\u7ef4\u62a4\u6027\u4f1a\u964d\u4f4e\u3002"),(0,r.kt)("p",null,"\u6700\u540e\uff0c\u6211\u4eec\u5e0c\u671b\u5b83\u63a5\u8fd1 \u201c\u539f\u751f\u201d \u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u5c31\u50cf\u53ea\u662f\u4e00\u6b21\u5f15\u64ce\u7684\u65e0\u75db\u5347\u7ea7\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u542f\u52a8 Cocos Creator \u62a5 Error: Can not parse this input:undefined \u9519\u8bef")),(0,r.kt)("p",null,"\u4f60\u53ef\u80fd\u5fd8\u8bb0\u5b89\u88c5\u914d\u5957\u7684\u5f15\u64ce\u6269\u5c55\uff0c\u6240\u4ee5\u6ca1\u6709\u627e\u5230\u793e\u533a\u7248\u7684\u5185\u7f6e\u8d44\u6e90\uff0c\u5bfc\u81f4\u62a5\u9519\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u6587\u6863\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u539f\u751f\u5e73\u53f0\u6216\u6a21\u62df\u5668\u62a5\u9519\uff1aAssertion failed: (_type == Type::String), function toString, file Value.cpp, line 496.")),(0,r.kt)("p",null,"\u4f60\u53ef\u80fd\u6ca1\u6709\u66ff\u6362\u5f15\u64ce\u7684 ",(0,r.kt)("inlineCode",{parentName:"p"},"jsb-adapter")," \u90e8\u5206\uff0c\u6216\u8005\u8bf4\u6ca1\u6709\u91cd\u542f\u4ee5\u4f7f\u66ff\u6362\u751f\u6548\u3002"),(0,r.kt)("p",null,"\u5e76\u4e14\u539f\u751f\u5e73\u53f0\u9700\u989d\u5916\u6ce8\u610f\uff0c\u5347\u7ea7\u540e\u7684\u9996\u6b21\u6784\u5efa\u53ef\u80fd\u9700\u5148\u5220\u9664\u539f\u6709\u7684\u6784\u5efa\u5de5\u7a0b\u624d\u4f1a\u751f\u6548\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"\u4f7f\u7528\u6a21\u62df\u5668\u9884\u89c8\u65f6\u51fa\u73b0\u5404\u79cd\u95ee\u9898")),(0,r.kt)("p",null,"\u53ef\u80fd\u662f\u56e0\u4e3a\u6a21\u62df\u5668\u6ca1\u6709\u91cd\u65b0\u7f16\u8bd1\u5bfc\u81f4\u7684\uff0c\u8bf7\u6309\u7167\u5b98\u65b9\u7684 ",(0,r.kt)("a",{parentName:"p",href:"https://docs.cocos.com/creator/2.4/manual/zh/advanced-topics/engine-customization.html#25-%E7%BC%96%E8%AF%91%E6%A8%A1%E6%8B%9F%E5%99%A8"},"\u5f15\u64ce\u5b9a\u5236\u6587\u6863")," \u91cd\u65b0\u7f16\u8bd1\u539f\u751f\u6a21\u62df\u5668\u5373\u53ef\u3002"),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Spine \u7ec4\u4ef6\u51fa\u73b0 Uncaught TypeError: Cannot read property \u2018load\u2019 of null, location: src/cocos2d-jsb.b5158.js \u7b49\u95ee\u9898")),(0,r.kt)("p",null,"\u8fd9\u662f\u5f15\u64ce\u81ea\u8eab\u7684\u95ee\u9898\uff0c\u7531\u4e8e\u91ca\u653e Spine \u8d44\u6e90\uff0c\u7136\u540e\u518d\u6b21\u52a0\u8f7d\u76f8\u540c Spine \u8d44\u6e90\u65f6\u5bfc\u81f4\uff0c\u5177\u4f53\u8bf7\u770b\uff1a"),(0,r.kt)("p",null,(0,r.kt)("a",{parentName:"p",href:"https://forum.cocos.org/t/topic/137649/148"},"\u95ee\u9898\u8ba8\u8bba")),(0,r.kt)("p",null,"\u622a\u6b62 v2.4.12\uff0c\u5f15\u64ce\u4ecd\u672a\u4fee\u590d\u6b64\u95ee\u9898\uff0c\u6682\u65f6\u7684\u89e3\u51b3\u65b9\u6848\u6709\u4e09\u79cd\uff1a"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"\u5f15\u64ce\u5df2\u7ecf\u6709\u4e00\u4e2a\u4fee\u590d\u6b64\u95ee\u9898\u7684 PR\uff0c\u4f46\u8fd8\u672a\u5408\u5165\uff0c\u53ef\u81ea\u884c\u5408\u5165\uff1a",(0,r.kt)("a",{parentName:"li",href:"https://github.com/cocos/engine-native/pull/4307"},"PR #4307")),(0,r.kt)("li",{parentName:"ol"},"\u9700\u8981\u8fdb\u884c\u91ca\u653e\u7684 spine \u8d44\u6e90\uff0c\u4e0d\u8ba9\u5176\u53c2\u4e0e\u52a8\u6001\u5408\u56fe\uff08\u901a\u8fc7\u63a7\u5236 Spine \u7ec4\u4ef6\u7684\u5408\u56fe\u5f00\u5173\uff09\u3002"),(0,r.kt)("li",{parentName:"ol"},"\u4e0d\u91ca\u653e\u9700\u8981\u53c2\u4e0e\u52a8\u6001\u5408\u56fe\u7684 spine \u8d44\u6e90\u3002")),(0,r.kt)("p",null,"\u8be5\u95ee\u9898\u5df2\u5728 v2.4.13 \u7248\u672c\u4fee\u590d\uff0c\u8bf7\u5347\u7ea7\u793e\u533a\u7248\u81f3 v2.0.0 \u4ee5\u4e0a\u3002"),(0,r.kt)("h2",{id:"\u652f\u6301\u6211\u4eec"},"\u652f\u6301\u6211\u4eec"),(0,r.kt)("p",null,"\u793e\u533a\u7248\u7684\u5f00\u53d1\u9700\u8981\u5927\u91cf\u7684\u5de5\u4f5c\u6765\u8fdb\u884c\uff0c\u4f60\u7684\u652f\u6301\u662f\u6211\u4eec\u6700\u5927\u7684\u52a8\u529b\uff1a"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"\u8bf7\u7ed9\u6211\u4eec\u7684\u9879\u76ee\u4ed3\u5e93\u4e00\u4e2a ",(0,r.kt)("a",{parentName:"li",href:"https://github.com/smallmain/cocos-enhance-kit"},"Star"),"\uff01"),(0,r.kt)("li",{parentName:"ul"},"\u8d2d\u4e70\u53ef\u6709\u53ef\u65e0\u7684 ",(0,r.kt)("a",{parentName:"li",href:"https://store.cocos.com/app/detail/3824"},"\u4e00\u952e\u5b89\u88c5\u6269\u5c55")," \u8d5e\u52a9\u6211\u4eec\uff01")))}m.isMDXComponent=!0},45637:function(e,t,n){t.Z=n.p+"assets/images/demo1-458cc9beda63cfd491b25de86bf2593c.png"},48039:function(e,t,n){t.Z=n.p+"assets/images/demo2-b23bb05bb434ce25ef290d2f30cc028c.png"},98549:function(e,t,n){t.Z=n.p+"assets/images/demo3-e616d6a6d0bd2bfbceb2db57b38fec91.png"},44927:function(e,t,n){t.Z=n.p+"assets/images/demo4-5a9ef2c1b76818302f5c5e2d745ede2a.png"},56908:function(e,t,n){t.Z=n.p+"assets/images/demo5-7588adeef99924536d52fb590a4c2813.png"},79890:function(e,t,n){t.Z=n.p+"assets/images/demo6-56d57634201f968039d2b7a3d76a8269.png"},57558:function(e,t,n){t.Z=n.p+"assets/images/logo2-a1b6b635bf67fdaee31973e360250e69.png"}}]);