diff --git a/404.html b/404.html index 5e047b3d..a886684b 100644 --- a/404.html +++ b/404.html @@ -9,13 +9,13 @@ - +
跳到主要内容

找不到页面

我们找不到您要找的页面。

请联系原始链接来源网站的所有者,并告知他们链接已损坏。

- + \ No newline at end of file diff --git a/assets/js/3d345fd1.689ba83f.js b/assets/js/3d345fd1.04cb8255.js similarity index 64% rename from assets/js/3d345fd1.689ba83f.js rename to assets/js/3d345fd1.04cb8255.js index 3637b3e6..f9961c5e 100644 --- a/assets/js/3d345fd1.689ba83f.js +++ b/assets/js/3d345fd1.04cb8255.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[9106],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(7294);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 o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),p=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(s.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},b=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),u=p(n),b=a,d=u["".concat(s,".").concat(b)]||u[b]||m[b]||o;return n?r.createElement(d,l(l({ref:t},c),{},{components:n})):r.createElement(d,l({ref:t},c))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=b;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i[u]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>p});var r=n(7462),a=(n(7294),n(3905));const o={},l="MonoBehaviour\u652f\u6301",i={unversionedId:"basic/monobehaviour",id:"basic/monobehaviour",title:"MonoBehaviour\u652f\u6301",description:"HybridCLR\u5b8c\u5168\u652f\u6301\u70ed\u66f4\u65b0MonoBehaviour\u548cScriptableObject\u5de5\u4f5c\u6d41\uff0c\u5373\u53ef\u4ee5\u5728\u4ee3\u7801\u91cc\u5728GameObject\u4e0aAdd\u70ed\u66f4\u65b0\u811a\u672c\u6216\u8005\u5728\u8d44\u6e90\u4e0a\u76f4\u63a5\u6302\u8f7d",source:"@site/docs/basic/monobehaviour.md",sourceDirName:"basic",slug:"/basic/monobehaviour",permalink:"/docs/basic/monobehaviour",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\u4ee3\u7801\u88c1\u526a",permalink:"/docs/basic/codestriping"},next:{title:"AOT\u6cdb\u578b",permalink:"/docs/basic/aotgeneric"}},s={},p=[{value:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528",id:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528",level:2},{value:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dMonoBehaviour\u6216\u8005\u521b\u5efaScriptableObject\u7c7b\u578b\u8d44\u6e90",id:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dmonobehaviour\u6216\u8005\u521b\u5efascriptableobject\u7c7b\u578b\u8d44\u6e90",level:2},{value:"assembly\u5217\u8868\u6587\u4ef6",id:"assembly\u5217\u8868\u6587\u4ef6",level:2},{value:"\u5df2\u77e5\u95ee\u9898",id:"\u5df2\u77e5\u95ee\u9898",level:2},{value:"GameObject.GetComponent(string name) \u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6",id:"gameobjectgetcomponentstring-name-\u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6",level:3},{value:"\u5176\u5b83",id:"\u5176\u5b83",level:2}],c={toc:p},u="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(u,(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"monobehaviour\u652f\u6301"},"MonoBehaviour\u652f\u6301"),(0,a.kt)("p",null,"HybridCLR\u5b8c\u5168\u652f\u6301\u70ed\u66f4\u65b0MonoBehaviour\u548cScriptableObject\u5de5\u4f5c\u6d41\uff0c\u5373\u53ef\u4ee5\u5728\u4ee3\u7801\u91cc\u5728GameObject\u4e0aAdd\u70ed\u66f4\u65b0\u811a\u672c\u6216\u8005\u5728\u8d44\u6e90\u4e0a\u76f4\u63a5\u6302\u8f7d\n\u70ed\u66f4\u65b0\u811a\u672c\u3002\u4f46\u7531\u4e8eUnity\u8d44\u6e90\u7ba1\u7406\u673a\u5236\u7684\u7279\u6b8a\u6027\uff0c\u5bf9\u4e8e\u8d44\u6e90\u4e0a\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u9700\u8981\u6253\u5305\u5de5\u4f5c\u6d41\u4e0a\u4f5c\u4e00\u4e9b\u7279\u6b8a\u5904\u7406\u3002"),(0,a.kt)("h2",{id:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528"},"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528"),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"AddComponent()"),"\u6216\u8005",(0,a.kt)("inlineCode",{parentName:"p"},"AddComponent(Type type)"),"\u4efb\u4f55\u65f6\u5019\u90fd\u662f\u5b8c\u7f8e\u652f\u6301\u7684\u3002\u53ea\u9700\u8981\u63d0\u524d\u901a\u8fc7Assembly.Load\u5c06\u70ed\u66f4\u65b0dll\u52a0\u8f7d\u5230\u8fd0\u884c\u65f6\n\u5185\u5373\u53ef\u3002"),(0,a.kt)("h2",{id:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dmonobehaviour\u6216\u8005\u521b\u5efascriptableobject\u7c7b\u578b\u8d44\u6e90"},"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dMonoBehaviour\u6216\u8005\u521b\u5efaScriptableObject\u7c7b\u578b\u8d44\u6e90"),(0,a.kt)("p",null,"Unity\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u5728\u53cd\u5e8f\u5217\u5316\u8d44\u6e90\u4e2d\u7684\u70ed\u66f4\u65b0\u811a\u672c\u65f6\uff0c\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\uff1a"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u811a\u672c\u6240\u5728\u7684dll\u5df2\u7ecf\u52a0\u8f7d\u5230\u8fd0\u884c\u65f6\u4e2d"),(0,a.kt)("li",{parentName:"ol"},"\u5fc5\u987b\u662f\u4f7f\u7528AssetBundle\u6253\u5305\u7684\u8d44\u6e90\uff08",(0,a.kt)("strong",{parentName:"li"},"addressable\u4e4b\u7c7b\u95f4\u63a5\u4f7f\u7528\u4e86ab\u7684\u6846\u67b6\u4e5f\u53ef\u4ee5"),"\uff09"),(0,a.kt)("li",{parentName:"ol"},"\u811a\u672c\u6240\u5728\u7684dll\u5fc5\u987b\u6dfb\u52a0\u5230\u6253\u5305\u65f6\u751f\u6210\u7684assembly\u5217\u8868\u6587\u4ef6\u3002\u8fd9\u4e2a\u5217\u8868\u6587\u4ef6\u662funity\u542f\u52a8\u65f6\u5373\u52a0\u8f7d\u7684\uff0c\u4e0d\u53ef\u53d8\u6570\u636e\u3002\u4e0d\u540c\u7248\u672c\u7684Unity\u7684\u5217\u8868\u6587\u4ef6\u540d\u548c\u683c\u5f0f\u4e0d\u76f8\u540c\u3002")),(0,a.kt)("p",null,"\u5982\u679c\u672a\u5bf9\u6253\u5305\u6d41\u7a0b\u4f5c\u4efb\u4f55\u5904\u7406\uff0c\u7531\u4e8e\u70ed\u66f4\u65b0dll\u5df2\u7ecf\u5728",(0,a.kt)("inlineCode",{parentName:"p"},"IFilterBuildAssemblies"),"\u56de\u8c03\u4e2d\u88ab\u79fb\u9664\uff0c\u80af\u5b9a\u4e0d\u4f1a\u51fa\u73b0\u5728assembly\u5217\u8868\u6587\u4ef6\u4e2d\u3002\n\u7531\u4e8e\u4e0d\u6ee1\u8db3\u6761\u4ef63\uff0c\u6302\u8f7d\u5728\u70ed\u66f4\u65b0\u8d44\u6e90\u4e2d\u7684\u70ed\u66f4\u65b0\u811a\u672c\u65e0\u6cd5\u88ab\u8fd8\u539f\uff0c\u8fd0\u884c\u65f6\u4f1a\u51fa\u73b0 ",(0,a.kt)("inlineCode",{parentName:"p"},"Scripting Missing"),"\u7684\u9519\u8bef\u3002"),(0,a.kt)("p",null,"\u56e0\u6b64\u6211\u4eec\u5728",(0,a.kt)("inlineCode",{parentName:"p"},"Editor/BuildProcessors/PatchScriptingAssemblyList.cs")," \u811a\u672c\u4e2d\u4f5c\u4e86\u7279\u6b8a\u5904\u7406\uff0c\u628a\u70ed\u66f4\u65b0dll\u52a0\u5165\u5230assembly\u5217\u8868\u6587\u4ef6\u4e2d\u3002\n\u4f60\u9700\u8981\u628a\u9879\u76ee\u4e2d\u7684\u70ed\u66f4\u65b0assembly\u6dfb\u52a0\u5230",(0,a.kt)("inlineCode",{parentName:"p"},"HybridCLRSettings\u914d\u7f6e\u7684HotUpdateAssemblyDefinitions\u6216HotUpdateAssemblies \u5b57\u6bb5"),"\u4e2d\u3002"),(0,a.kt)("p",null,"\u53ea\u9650\u5236\u4e86\u70ed\u66f4\u65b0\u8d44\u6e90\u4ee5ab\u5305\u5f62\u5f0f\u6253\u5305\uff0c\u70ed\u66f4\u65b0dll\u6253\u5305\u65b9\u5f0f\u6ca1\u6709\u9650\u5236\u3002\u4f60\u53ef\u4ee5\u6309\u7167\u9879\u76ee\u9700\u6c42",(0,a.kt)("strong",{parentName:"p"},"\u81ea\u7531\u9009\u62e9\u70ed\u66f4\u65b0\u65b9\u5f0f"),"\uff0c\u53ef\u4ee5\u5c06dll\u6253\u5305\u5230ab\u4e2d\uff0c\u6216\u8005\u88f8\u6570\u636e\n\u6587\u4ef6\uff0c\u6216\u8005\u52a0\u5bc6\u538b\u7f29\u7b49\u7b49\u3002\u53ea\u8981\u80fd\u4fdd\u8bc1\u5728\u52a0\u8f7d\u70ed\u66f4\u65b0\u8d44\u6e90\u524d\u4f7f\u7528Assembly.Load\u5c06\u5176\u52a0\u8f7d\u5373\u53ef\u3002"),(0,a.kt)("h2",{id:"assembly\u5217\u8868\u6587\u4ef6"},"assembly\u5217\u8868\u6587\u4ef6"),(0,a.kt)("p",null,"\u4e0d\u540cUnity\u7248\u672c\u4e0bassembly\u5217\u8868\u6587\u4ef6\u7684\u540d\u79f0\u548c\u683c\u5f0f\u90fd\u4e0d\u4e00\u6837\u3002"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"2019\u7248\u672c\u3002 \u975e\u538b\u7f29\u6253\u5305\u65f6\u4e3aglobalgamemanagers\u6587\u4ef6\uff0c\u538b\u7f29\u6253\u5305\u65f6\u5148\u4fdd\u5b58\u5230globalgamemanagers\u6587\u4ef6\uff0c\u518d\u4ee5BundleFile\u683c\u5f0f\u548c\u5176\u4ed6\u6587\u4ef6\u6253\u5305\u5230data.unity3d\u6587\u4ef6\u3002"),(0,a.kt)("li",{parentName:"ul"},"2020-2021\u7248\u672c\u3002 \u4fdd\u5b58\u5728ScriptingAssembles.json\u6587\u4ef6\u4e2d\u3002")),(0,a.kt)("h2",{id:"\u5df2\u77e5\u95ee\u9898"},"\u5df2\u77e5\u95ee\u9898"),(0,a.kt)("h3",{id:"gameobjectgetcomponentstring-name-\u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6"},"GameObject.GetComponent(string name) \u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6"),(0,a.kt)("p",null,"\u8fd9\u662f\u5df2\u77e5bug,\u8ddfunity\u7684\u4ee3\u7801\u5b9e\u73b0\u6709\u5173\uff0c\u53ea\u6709\u6302\u8f7d\u5728\u70ed\u66f4\u65b0\u8d44\u6e90\u4e0a\u70ed\u66f4\u65b0\u811a\u672c\u624d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u901a\u8fc7\u4ee3\u7801\u4e2dAddComponent\u6dfb\u52a0\u7684\u70ed\u66f4\u65b0\u811a\u672c\u662f\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\u67e5\u627e\u5230\u3002\u5982\u679c\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\u8bf7\u6539\u7528 ",(0,a.kt)("inlineCode",{parentName:"p"},"GameObject.GetComponent()")," \u6216 ",(0,a.kt)("inlineCode",{parentName:"p"},"GameObject.GetComponent(typeof(T))")),(0,a.kt)("h2",{id:"\u5176\u5b83"},"\u5176\u5b83"),(0,a.kt)("p",null,"\u9700\u8981\u88ab\u6302\u5230\u8d44\u6e90\u4e0a\u7684\u811a\u672c\u6240\u5728dll\u540d\u79f0\u4e0a\u7ebf\u540e\u52ff\u4fee\u6539\uff0c\u56e0\u4e3aassembly\u5217\u8868\u6587\u4ef6\u6253\u5305\u540e\u65e0\u6cd5\u4fee\u6539\u3002"),(0,a.kt)("p",null,"\u5efa\u8bae\u6253AB\u65f6\u4e0d\u8981\u7981\u7528TypeTree\uff0c\u5426\u5219\u666e\u901a\u7684AB\u52a0\u8f7d\u65b9\u5f0f\u4f1a\u5931\u8d25\u3002\uff08\u539f\u56e0\u662f\u5bf9\u4e8e\u7981\u7528TypeTree\u7684\u811a\u672c\uff0cUnity\u4e3a\u4e86\u9632\u6b62\u4e8c\u8fdb\u5236\u4e0d\u5339\u914d\u5bfc\u81f4\u53cd\u5e8f\u5217\u5316MonoBehaviour\u8fc7\u7a0b\u4e2d\u8fdb\u7a0bCrash\uff0c\u4f1a\u5bf9\u811a\u672c\u7684\u7b7e\u540d\u8fdb\u884c\u6821\u9a8c\uff0c\u7b7e\u540d\u7684\u5185\u5bb9\u662f\u811a\u672cFullName\u53caTypeTree\u6570\u636e\u751f\u6210\u7684Hash, \u4f46\u7531\u4e8e\u6211\u4eec\u7684\u70ed\u66f4\u811a\u672c\u4fe1\u606f\u4e0d\u5b58\u5728\u4e8e\u6253\u5305\u540e\u7684\u5b89\u88c5\u5305\u4e2d\uff0c\u56e0\u6b64\u6821\u9a8c\u5fc5\u5b9a\u4f1a\u5931\u8d25\uff09"),(0,a.kt)("p",null,"\u5982\u679c\u5fc5\u987b\u8981\u7981\u7528TypeTree\uff0c\u4e00\u4e2a\u53d8\u901a\u7684\u65b9\u6cd5\u662f\u7981\u6b62\u811a\u672c\u7684Hash\u6821\u9a8c, \u6b64\u79cd\u60c5\u51b5\u4e0b\u7528\u6237\u5fc5\u987b\u4fdd\u8bc1\u6253\u5305\u65f6\u4ee3\u7801\u4e0e\u8d44\u6e90\u7248\u672c\u4e00\u81f4\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4Crash\uff0c\u793a\u4f8b\u4ee3\u7801"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"}," AssetBundleCreateRequest req = AssetBundle.LoadFromFileAsync(path);\n req.SetEnableCompatibilityChecks(false); // \u975epublic\uff0c\u9700\u8981\u901a\u8fc7\u53cd\u5c04\u8c03\u7528\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[9106],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(7294);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 o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),p=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(s.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},b=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),m=p(n),b=a,d=m["".concat(s,".").concat(b)]||m[b]||u[b]||o;return n?r.createElement(d,l(l({ref:t},c),{},{components:n})):r.createElement(d,l({ref:t},c))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=b;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i[m]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>p});var r=n(7462),a=(n(7294),n(3905));const o={},l="MonoBehaviour\u652f\u6301",i={unversionedId:"basic/monobehaviour",id:"basic/monobehaviour",title:"MonoBehaviour\u652f\u6301",description:"HybridCLR\u5b8c\u5168\u652f\u6301\u70ed\u66f4\u65b0MonoBehaviour\u548cScriptableObject\u5de5\u4f5c\u6d41\uff0c\u5373\u53ef\u4ee5\u5728\u4ee3\u7801\u91cc\u5728GameObject\u4e0aAdd\u70ed\u66f4\u65b0\u811a\u672c\u6216\u8005\u5728\u8d44\u6e90\u4e0a\u76f4\u63a5\u6302\u8f7d",source:"@site/docs/basic/monobehaviour.md",sourceDirName:"basic",slug:"/basic/monobehaviour",permalink:"/docs/basic/monobehaviour",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\u4ee3\u7801\u88c1\u526a",permalink:"/docs/basic/codestriping"},next:{title:"AOT\u6cdb\u578b",permalink:"/docs/basic/aotgeneric"}},s={},p=[{value:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528",id:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528",level:2},{value:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dMonoBehaviour\u6216\u8005\u521b\u5efaScriptableObject\u7c7b\u578b\u8d44\u6e90",id:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dmonobehaviour\u6216\u8005\u521b\u5efascriptableobject\u7c7b\u578b\u8d44\u6e90",level:2},{value:"assembly\u5217\u8868\u6587\u4ef6",id:"assembly\u5217\u8868\u6587\u4ef6",level:2},{value:"\u5df2\u77e5\u95ee\u9898",id:"\u5df2\u77e5\u95ee\u9898",level:2},{value:"GameObject.GetComponent(string name) \u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6",id:"gameobjectgetcomponentstring-name-\u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6",level:3},{value:"\u5176\u5b83",id:"\u5176\u5b83",level:2}],c={toc:p},m="wrapper";function u(e){let{components:t,...n}=e;return(0,a.kt)(m,(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"monobehaviour\u652f\u6301"},"MonoBehaviour\u652f\u6301"),(0,a.kt)("p",null,"HybridCLR\u5b8c\u5168\u652f\u6301\u70ed\u66f4\u65b0MonoBehaviour\u548cScriptableObject\u5de5\u4f5c\u6d41\uff0c\u5373\u53ef\u4ee5\u5728\u4ee3\u7801\u91cc\u5728GameObject\u4e0aAdd\u70ed\u66f4\u65b0\u811a\u672c\u6216\u8005\u5728\u8d44\u6e90\u4e0a\u76f4\u63a5\u6302\u8f7d\n\u70ed\u66f4\u65b0\u811a\u672c\u3002\u4f46\u7531\u4e8eUnity\u8d44\u6e90\u7ba1\u7406\u673a\u5236\u7684\u7279\u6b8a\u6027\uff0c\u5bf9\u4e8e\u8d44\u6e90\u4e0a\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u9700\u8981\u6253\u5305\u5de5\u4f5c\u6d41\u4e0a\u4f5c\u4e00\u4e9b\u7279\u6b8a\u5904\u7406\u3002"),(0,a.kt)("h2",{id:"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528"},"\u901a\u8fc7\u4ee3\u7801\u4f7f\u7528"),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"AddComponent()"),"\u6216\u8005",(0,a.kt)("inlineCode",{parentName:"p"},"AddComponent(Type type)"),"\u4efb\u4f55\u65f6\u5019\u90fd\u662f\u5b8c\u7f8e\u652f\u6301\u7684\u3002\u53ea\u9700\u8981\u63d0\u524d\u901a\u8fc7Assembly.Load\u5c06\u70ed\u66f4\u65b0dll\u52a0\u8f7d\u5230\u8fd0\u884c\u65f6\n\u5185\u5373\u53ef\u3002"),(0,a.kt)("h2",{id:"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dmonobehaviour\u6216\u8005\u521b\u5efascriptableobject\u7c7b\u578b\u8d44\u6e90"},"\u5728\u8d44\u6e90\u4e0a\u6302\u8f7dMonoBehaviour\u6216\u8005\u521b\u5efaScriptableObject\u7c7b\u578b\u8d44\u6e90"),(0,a.kt)("p",null,"Unity\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u5728\u53cd\u5e8f\u5217\u5316\u8d44\u6e90\u4e2d\u7684\u70ed\u66f4\u65b0\u811a\u672c\u65f6\uff0c\u9700\u8981\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\uff1a"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"\u811a\u672c\u6240\u5728\u7684dll\u5df2\u7ecf\u52a0\u8f7d\u5230\u8fd0\u884c\u65f6\u4e2d"),(0,a.kt)("li",{parentName:"ol"},"\u5fc5\u987b\u662f\u4f7f\u7528AssetBundle\u6253\u5305\u7684\u8d44\u6e90\uff08",(0,a.kt)("strong",{parentName:"li"},"addressable\u4e4b\u7c7b\u95f4\u63a5\u4f7f\u7528\u4e86ab\u7684\u6846\u67b6\u4e5f\u53ef\u4ee5"),"\uff09"),(0,a.kt)("li",{parentName:"ol"},"\u811a\u672c\u6240\u5728\u7684dll\u5fc5\u987b\u6dfb\u52a0\u5230\u6253\u5305\u65f6\u751f\u6210\u7684assembly\u5217\u8868\u6587\u4ef6\u3002\u8fd9\u4e2a\u5217\u8868\u6587\u4ef6\u662funity\u542f\u52a8\u65f6\u5373\u52a0\u8f7d\u7684\uff0c\u4e0d\u53ef\u53d8\u6570\u636e\u3002\u4e0d\u540c\u7248\u672c\u7684Unity\u7684\u5217\u8868\u6587\u4ef6\u540d\u548c\u683c\u5f0f\u4e0d\u76f8\u540c\u3002")),(0,a.kt)("p",null,"\u5982\u679c\u672a\u5bf9\u6253\u5305\u6d41\u7a0b\u4f5c\u4efb\u4f55\u5904\u7406\uff0c\u7531\u4e8e\u70ed\u66f4\u65b0dll\u5df2\u7ecf\u5728",(0,a.kt)("inlineCode",{parentName:"p"},"IFilterBuildAssemblies"),"\u56de\u8c03\u4e2d\u88ab\u79fb\u9664\uff0c\u80af\u5b9a\u4e0d\u4f1a\u51fa\u73b0\u5728assembly\u5217\u8868\u6587\u4ef6\u4e2d\u3002\n\u7531\u4e8e\u4e0d\u6ee1\u8db3\u6761\u4ef63\uff0c\u6302\u8f7d\u5728\u70ed\u66f4\u65b0\u8d44\u6e90\u4e2d\u7684\u70ed\u66f4\u65b0\u811a\u672c\u65e0\u6cd5\u88ab\u8fd8\u539f\uff0c\u8fd0\u884c\u65f6\u4f1a\u51fa\u73b0 ",(0,a.kt)("inlineCode",{parentName:"p"},"Scripting Missing"),"\u7684\u9519\u8bef\u3002"),(0,a.kt)("p",null,"\u56e0\u6b64\u6211\u4eec\u5728",(0,a.kt)("inlineCode",{parentName:"p"},"Editor/BuildProcessors/PatchScriptingAssemblyList.cs")," \u811a\u672c\u4e2d\u4f5c\u4e86\u7279\u6b8a\u5904\u7406\uff0c\u628a\u70ed\u66f4\u65b0dll\u52a0\u5165\u5230assembly\u5217\u8868\u6587\u4ef6\u4e2d\u3002\n\u4f60\u9700\u8981\u628a\u9879\u76ee\u4e2d\u7684\u70ed\u66f4\u65b0assembly\u6dfb\u52a0\u5230",(0,a.kt)("inlineCode",{parentName:"p"},"HybridCLRSettings\u914d\u7f6e\u7684HotUpdateAssemblyDefinitions\u6216HotUpdateAssemblies \u5b57\u6bb5"),"\u4e2d\u3002"),(0,a.kt)("p",null,"\u53ea\u9650\u5236\u4e86\u70ed\u66f4\u65b0\u8d44\u6e90\u4ee5ab\u5305\u5f62\u5f0f\u6253\u5305\uff0c\u70ed\u66f4\u65b0dll\u6253\u5305\u65b9\u5f0f\u6ca1\u6709\u9650\u5236\u3002\u4f60\u53ef\u4ee5\u6309\u7167\u9879\u76ee\u9700\u6c42",(0,a.kt)("strong",{parentName:"p"},"\u81ea\u7531\u9009\u62e9\u70ed\u66f4\u65b0\u65b9\u5f0f"),"\uff0c\u53ef\u4ee5\u5c06dll\u6253\u5305\u5230ab\u4e2d\uff0c\u6216\u8005\u88f8\u6570\u636e\n\u6587\u4ef6\uff0c\u6216\u8005\u52a0\u5bc6\u538b\u7f29\u7b49\u7b49\u3002\u53ea\u8981\u80fd\u4fdd\u8bc1\u5728\u52a0\u8f7d\u70ed\u66f4\u65b0\u8d44\u6e90\u524d\u4f7f\u7528Assembly.Load\u5c06\u5176\u52a0\u8f7d\u5373\u53ef\u3002"),(0,a.kt)("admonition",{type:"warning"},(0,a.kt)("p",{parentName:"admonition"},(0,a.kt)("strong",{parentName:"p"},"\u5982\u679c\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u8f7d\u5230Resources\u7b49\u968f\u4e3b\u5305\u7684\u8d44\u6e90\u4e0a\uff0c\u4f1a\u53d1\u751fscripting missing\u7684\u9519\u8bef\uff01"),"\u4f46\u5982\u679c\u5148\u6253\u6210assetbundle\u5305\uff0c\u518d\u653e\u5230Resources\u4e0b\uff0c\u8fd0\u884c\u65f6\u52a0\u8f7d\u8be5\u968f\u5305assetbundle\u5219\u6ca1\u6709\u95ee\u9898\u3002")),(0,a.kt)("h2",{id:"assembly\u5217\u8868\u6587\u4ef6"},"assembly\u5217\u8868\u6587\u4ef6"),(0,a.kt)("p",null,"\u4e0d\u540cUnity\u7248\u672c\u4e0bassembly\u5217\u8868\u6587\u4ef6\u7684\u540d\u79f0\u548c\u683c\u5f0f\u90fd\u4e0d\u4e00\u6837\u3002"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"2019\u7248\u672c\u3002 \u975e\u538b\u7f29\u6253\u5305\u65f6\u4e3aglobalgamemanagers\u6587\u4ef6\uff0c\u538b\u7f29\u6253\u5305\u65f6\u5148\u4fdd\u5b58\u5230globalgamemanagers\u6587\u4ef6\uff0c\u518d\u4ee5BundleFile\u683c\u5f0f\u548c\u5176\u4ed6\u6587\u4ef6\u6253\u5305\u5230data.unity3d\u6587\u4ef6\u3002"),(0,a.kt)("li",{parentName:"ul"},"2020-2021\u7248\u672c\u3002 \u4fdd\u5b58\u5728ScriptingAssembles.json\u6587\u4ef6\u4e2d\u3002")),(0,a.kt)("h2",{id:"\u5df2\u77e5\u95ee\u9898"},"\u5df2\u77e5\u95ee\u9898"),(0,a.kt)("h3",{id:"gameobjectgetcomponentstring-name-\u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6"},"GameObject.GetComponent(string name) \u63a5\u53e3\u65e0\u6cd5\u83b7\u5f97\u7ec4\u4ef6"),(0,a.kt)("p",null,"\u8fd9\u662f\u5df2\u77e5bug,\u8ddfunity\u7684\u4ee3\u7801\u5b9e\u73b0\u6709\u5173\uff0c\u53ea\u6709\u6302\u8f7d\u5728\u70ed\u66f4\u65b0\u8d44\u6e90\u4e0a\u70ed\u66f4\u65b0\u811a\u672c\u624d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c\u901a\u8fc7\u4ee3\u7801\u4e2dAddComponent\u6dfb\u52a0\u7684\u70ed\u66f4\u65b0\u811a\u672c\u662f\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\u67e5\u627e\u5230\u3002\u5982\u679c\u9047\u5230\u8fd9\u4e2a\u95ee\u9898\u8bf7\u6539\u7528 ",(0,a.kt)("inlineCode",{parentName:"p"},"GameObject.GetComponent()")," \u6216 ",(0,a.kt)("inlineCode",{parentName:"p"},"GameObject.GetComponent(typeof(T))")),(0,a.kt)("h2",{id:"\u5176\u5b83"},"\u5176\u5b83"),(0,a.kt)("p",null,"\u9700\u8981\u88ab\u6302\u5230\u8d44\u6e90\u4e0a\u7684\u811a\u672c\u6240\u5728dll\u540d\u79f0\u4e0a\u7ebf\u540e\u52ff\u4fee\u6539\uff0c\u56e0\u4e3aassembly\u5217\u8868\u6587\u4ef6\u6253\u5305\u540e\u65e0\u6cd5\u4fee\u6539\u3002"),(0,a.kt)("p",null,"\u5efa\u8bae\u6253AB\u65f6\u4e0d\u8981\u7981\u7528TypeTree\uff0c\u5426\u5219\u666e\u901a\u7684AB\u52a0\u8f7d\u65b9\u5f0f\u4f1a\u5931\u8d25\u3002\uff08\u539f\u56e0\u662f\u5bf9\u4e8e\u7981\u7528TypeTree\u7684\u811a\u672c\uff0cUnity\u4e3a\u4e86\u9632\u6b62\u4e8c\u8fdb\u5236\u4e0d\u5339\u914d\u5bfc\u81f4\u53cd\u5e8f\u5217\u5316MonoBehaviour\u8fc7\u7a0b\u4e2d\u8fdb\u7a0bCrash\uff0c\u4f1a\u5bf9\u811a\u672c\u7684\u7b7e\u540d\u8fdb\u884c\u6821\u9a8c\uff0c\u7b7e\u540d\u7684\u5185\u5bb9\u662f\u811a\u672cFullName\u53caTypeTree\u6570\u636e\u751f\u6210\u7684Hash, \u4f46\u7531\u4e8e\u6211\u4eec\u7684\u70ed\u66f4\u811a\u672c\u4fe1\u606f\u4e0d\u5b58\u5728\u4e8e\u6253\u5305\u540e\u7684\u5b89\u88c5\u5305\u4e2d\uff0c\u56e0\u6b64\u6821\u9a8c\u5fc5\u5b9a\u4f1a\u5931\u8d25\uff09"),(0,a.kt)("p",null,"\u5982\u679c\u5fc5\u987b\u8981\u7981\u7528TypeTree\uff0c\u4e00\u4e2a\u53d8\u901a\u7684\u65b9\u6cd5\u662f\u7981\u6b62\u811a\u672c\u7684Hash\u6821\u9a8c, \u6b64\u79cd\u60c5\u51b5\u4e0b\u7528\u6237\u5fc5\u987b\u4fdd\u8bc1\u6253\u5305\u65f6\u4ee3\u7801\u4e0e\u8d44\u6e90\u7248\u672c\u4e00\u81f4\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4Crash\uff0c\u793a\u4f8b\u4ee3\u7801"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-csharp"}," AssetBundleCreateRequest req = AssetBundle.LoadFromFileAsync(path);\n req.SetEnableCompatibilityChecks(false); // \u975epublic\uff0c\u9700\u8981\u901a\u8fc7\u53cd\u5c04\u8c03\u7528\n")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/bdd7c4d4.29db6262.js b/assets/js/bdd7c4d4.2f59ebfd.js similarity index 80% rename from assets/js/bdd7c4d4.29db6262.js rename to assets/js/bdd7c4d4.2f59ebfd.js index 7b582e86..46172f41 100644 --- a/assets/js/bdd7c4d4.29db6262.js +++ b/assets/js/bdd7c4d4.2f59ebfd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[6729],{3905:(e,n,t)=>{t.d(n,{Zo:()=>u,kt:()=>b});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=p(t),d=o,b=s["".concat(c,".").concat(d)]||s[d]||m[d]||a;return t?r.createElement(b,i(i({ref:n},u),{},{components:t})):r.createElement(b,i({ref:n},u))}));function b(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=d;var l={};for(var c in n)hasOwnProperty.call(n,c)&&(l[c]=n[c]);l.originalType=e,l[s]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=t(7462),o=(t(7294),t(3905));const a={},i="\u4f7f\u7528MonoBehaviour",l={unversionedId:"beginner/monobehaviour",id:"beginner/monobehaviour",title:"\u4f7f\u7528MonoBehaviour",description:"HybridCLR\u5b8c\u5168\u652f\u6301MonoBehaviour\u5de5\u4f5c\u6d41\uff0c\u4f60\u65e2\u53ef\u4ee5\u901a\u8fc7AddComponent\u7684\u65b9\u5f0f\u5728\u4ee3\u7801\u91cc\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u5230\u8d44\u6e90\u4e0a\uff0c\u518d\u901a\u8fc7\u52a0\u8f7d\u8d44\u6e90\u7684\u65b9\u5f0f\u8fd8\u539f\u811a\u672c\u3002",source:"@site/docs/beginner/monobehaviour.md",sourceDirName:"beginner",slug:"/beginner/monobehaviour",permalink:"/docs/beginner/monobehaviour",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\u5feb\u901f\u4e0a\u624b",permalink:"/docs/beginner/quickstart"},next:{title:"\u4f7f\u7528\u6cdb\u578b",permalink:"/docs/beginner/generic"}},c={},p=[{value:"\u521b\u5efa Print.cs \u70ed\u66f4\u65b0\u811a\u672c",id:"\u521b\u5efa-printcs-\u70ed\u66f4\u65b0\u811a\u672c",level:2},{value:"\u4ee3\u7801\u4e2d\u8c03\u7528AddComponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c",id:"\u4ee3\u7801\u4e2d\u8c03\u7528addcomponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c",level:2},{value:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90",id:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90",level:2}],u={toc:p},s="wrapper";function m(e){let{components:n,...t}=e;return(0,o.kt)(s,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u4f7f\u7528monobehaviour"},"\u4f7f\u7528MonoBehaviour"),(0,o.kt)("p",null,"HybridCLR\u5b8c\u5168\u652f\u6301MonoBehaviour\u5de5\u4f5c\u6d41\uff0c\u4f60\u65e2\u53ef\u4ee5\u901a\u8fc7AddComponent\u7684\u65b9\u5f0f\u5728\u4ee3\u7801\u91cc\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u5230\u8d44\u6e90\u4e0a\uff0c\u518d\u901a\u8fc7\u52a0\u8f7d\u8d44\u6e90\u7684\u65b9\u5f0f\u8fd8\u539f\u811a\u672c\u3002"),(0,o.kt)("p",null,"\u57fa\u4e8e\u5feb\u901f\u4e0a\u624b\u6587\u6863\u7684\u9879\u76ee\uff0c\u6211\u4eec\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u70ed\u66f4\u65b0\u811a\u672c\u3002"),(0,o.kt)("h2",{id:"\u521b\u5efa-printcs-\u70ed\u66f4\u65b0\u811a\u672c"},"\u521b\u5efa ",(0,o.kt)("inlineCode",{parentName:"h2"},"Print.cs")," \u70ed\u66f4\u65b0\u811a\u672c"),(0,o.kt)("p",null,"\u521b\u5efa ",(0,o.kt)("inlineCode",{parentName:"p"},"Assets/HotUpdate/Print.cs"),"\u811a\u672c\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-csharp"},'using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class Print : MonoBehaviour\n{\n void Start()\n {\n Debug.Log($"[Print] GameObject:{name}"); \n }\n}\n')),(0,o.kt)("h2",{id:"\u4ee3\u7801\u4e2d\u8c03\u7528addcomponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c"},"\u4ee3\u7801\u4e2d\u8c03\u7528AddComponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c"),(0,o.kt)("p",null,"\u4fee\u6539 ",(0,o.kt)("inlineCode",{parentName:"p"},"Hello.Run"),"\u51fd\u6570\uff0c\u6dfb\u52a0\u52a8\u6001\u6302\u8f7dPrint\u811a\u672c\u7684\u4ee3\u7801\uff0c\u6700\u7ec8\u4ee3\u7801\u5982\u4e0b:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-csharp"},' public static void Run()\n {\n Debug.Log("Hello, World");\n\n GameObject go = new GameObject("Test1");\n go.AddComponent();\n }\n')),(0,o.kt)("p",null,"\u70ed\u66f4\u65b0\u540e\uff0c\u5c4f\u5e55\u4e0a\u4f1a\u65b0\u589e\u4e00\u884c\u65e5\u5fd7 ",(0,o.kt)("inlineCode",{parentName:"p"},"[Print] GameObject:Test1"),"\u3002"),(0,o.kt)("h2",{id:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90"},"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90"),(0,o.kt)("p",null,"\u7531\u4e8eUnity\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u70ed\u66f4\u65b0\u811a\u672c\u6240\u6302\u8f7d\u7684\u8d44\u6e90\uff08prefab\u3001scene\u3001ScriptableObject\u8d44\u6e90\uff09",(0,o.kt)("strong",{parentName:"p"},"\u5fc5\u987b\u6253\u6210assetbundle"),"\uff0c\u4eceab\u5305\u4e2d\u5b9e\u4f8b\u5316\u8d44\u6e90\uff0c\u624d\u80fd\u6b63\u786e\u8fd8\u539f\u811a\u672c\u3002"),(0,o.kt)("admonition",{type:"danger"},(0,o.kt)("p",{parentName:"admonition"},(0,o.kt)("strong",{parentName:"p"},"\u5982\u679c\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u8f7d\u5230Resources\u7b49\u968f\u4e3b\u5305\u7684\u8d44\u6e90\u4e0a\uff0c\u4f1a\u53d1\u751fscripting missing\u7684\u9519\u8bef\uff01"))),(0,o.kt)("p",null,"\u7531\u4e8e\u6574\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u6253ab\u5305\uff0c\u6bd4\u8f83\u5197\u957f\uff0c\u8fd9\u513f\u4e0d\u8be6\u7ec6\u8bf4\u660e\u3002\u8bf7\u76f4\u63a5\u4f53\u9a8c hybridclr_trial \u9879\u76ee\uff08",(0,o.kt)("a",{parentName:"p",href:"https://github.com/focus-creative-games/hybridclr_trial"},"github")," \u6216 ",(0,o.kt)("a",{parentName:"p",href:"https://gitee.com/focus-creative-games/hybridclr_trial"},"gitee"),"\uff09\u3002"),(0,o.kt)("p",null,"\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\uff0c\u4f60\u53ea\u9700\u8981\u8bb0\u4f4f\uff1a\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\u7684\u8d44\u6e90\uff08\u573a\u666f\u6216prefab\uff09\u5fc5\u987b\u6253\u5305\u6210ab\uff0c\u5728\u5b9e\u4f8b\u5316\u8d44\u6e90\u524d\u5148\u52a0\u8f7d\u70ed\u66f4\u65b0dll\u5373\u53ef\uff08\u8fd9\u4e2a\u8981\u6c42\u662f\u663e\u7136\u7684\uff01\uff09\u3002"))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[6729],{3905:(e,n,t)=>{t.d(n,{Zo:()=>u,kt:()=>b});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=p(t),m=o,b=s["".concat(c,".").concat(m)]||s[m]||d[m]||a;return t?r.createElement(b,i(i({ref:n},u),{},{components:t})):r.createElement(b,i({ref:n},u))}));function b(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=m;var l={};for(var c in n)hasOwnProperty.call(n,c)&&(l[c]=n[c]);l.originalType=e,l[s]="string"==typeof e?e:o,i[1]=l;for(var p=2;p{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>a,metadata:()=>l,toc:()=>p});var r=t(7462),o=(t(7294),t(3905));const a={},i="\u4f7f\u7528MonoBehaviour",l={unversionedId:"beginner/monobehaviour",id:"beginner/monobehaviour",title:"\u4f7f\u7528MonoBehaviour",description:"HybridCLR\u5b8c\u5168\u652f\u6301MonoBehaviour\u5de5\u4f5c\u6d41\uff0c\u4f60\u65e2\u53ef\u4ee5\u901a\u8fc7AddComponent\u7684\u65b9\u5f0f\u5728\u4ee3\u7801\u91cc\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u5230\u8d44\u6e90\u4e0a\uff0c\u518d\u901a\u8fc7\u52a0\u8f7d\u8d44\u6e90\u7684\u65b9\u5f0f\u8fd8\u539f\u811a\u672c\u3002",source:"@site/docs/beginner/monobehaviour.md",sourceDirName:"beginner",slug:"/beginner/monobehaviour",permalink:"/docs/beginner/monobehaviour",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\u5feb\u901f\u4e0a\u624b",permalink:"/docs/beginner/quickstart"},next:{title:"\u4f7f\u7528\u6cdb\u578b",permalink:"/docs/beginner/generic"}},c={},p=[{value:"\u521b\u5efa Print.cs \u70ed\u66f4\u65b0\u811a\u672c",id:"\u521b\u5efa-printcs-\u70ed\u66f4\u65b0\u811a\u672c",level:2},{value:"\u4ee3\u7801\u4e2d\u8c03\u7528AddComponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c",id:"\u4ee3\u7801\u4e2d\u8c03\u7528addcomponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c",level:2},{value:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90",id:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90",level:2}],u={toc:p},s="wrapper";function d(e){let{components:n,...t}=e;return(0,o.kt)(s,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"\u4f7f\u7528monobehaviour"},"\u4f7f\u7528MonoBehaviour"),(0,o.kt)("p",null,"HybridCLR\u5b8c\u5168\u652f\u6301MonoBehaviour\u5de5\u4f5c\u6d41\uff0c\u4f60\u65e2\u53ef\u4ee5\u901a\u8fc7AddComponent\u7684\u65b9\u5f0f\u5728\u4ee3\u7801\u91cc\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u5230\u8d44\u6e90\u4e0a\uff0c\u518d\u901a\u8fc7\u52a0\u8f7d\u8d44\u6e90\u7684\u65b9\u5f0f\u8fd8\u539f\u811a\u672c\u3002"),(0,o.kt)("p",null,"\u57fa\u4e8e\u5feb\u901f\u4e0a\u624b\u6587\u6863\u7684\u9879\u76ee\uff0c\u6211\u4eec\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u70ed\u66f4\u65b0\u811a\u672c\u3002"),(0,o.kt)("h2",{id:"\u521b\u5efa-printcs-\u70ed\u66f4\u65b0\u811a\u672c"},"\u521b\u5efa ",(0,o.kt)("inlineCode",{parentName:"h2"},"Print.cs")," \u70ed\u66f4\u65b0\u811a\u672c"),(0,o.kt)("p",null,"\u521b\u5efa ",(0,o.kt)("inlineCode",{parentName:"p"},"Assets/HotUpdate/Print.cs"),"\u811a\u672c\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-csharp"},'using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class Print : MonoBehaviour\n{\n void Start()\n {\n Debug.Log($"[Print] GameObject:{name}"); \n }\n}\n')),(0,o.kt)("h2",{id:"\u4ee3\u7801\u4e2d\u8c03\u7528addcomponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c"},"\u4ee3\u7801\u4e2d\u8c03\u7528AddComponent\u6765\u52a8\u6001\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c"),(0,o.kt)("p",null,"\u4fee\u6539 ",(0,o.kt)("inlineCode",{parentName:"p"},"Hello.Run"),"\u51fd\u6570\uff0c\u6dfb\u52a0\u52a8\u6001\u6302\u8f7dPrint\u811a\u672c\u7684\u4ee3\u7801\uff0c\u6700\u7ec8\u4ee3\u7801\u5982\u4e0b:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-csharp"},' public static void Run()\n {\n Debug.Log("Hello, World");\n\n GameObject go = new GameObject("Test1");\n go.AddComponent();\n }\n')),(0,o.kt)("p",null,"\u70ed\u66f4\u65b0\u540e\uff0c\u5c4f\u5e55\u4e0a\u4f1a\u65b0\u589e\u4e00\u884c\u65e5\u5fd7 ",(0,o.kt)("inlineCode",{parentName:"p"},"[Print] GameObject:Test1"),"\u3002"),(0,o.kt)("h2",{id:"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90"},"\u5c06\u811a\u672c\u6302\u8f7d\u5230\u70ed\u66f4\u65b0\u8d44\u6e90"),(0,o.kt)("p",null,"\u7531\u4e8eUnity\u8d44\u6e90\u7ba1\u7406\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u70ed\u66f4\u65b0\u811a\u672c\u6240\u6302\u8f7d\u7684\u8d44\u6e90\uff08prefab\u3001scene\u3001ScriptableObject\u8d44\u6e90\uff09",(0,o.kt)("strong",{parentName:"p"},"\u5fc5\u987b\u6253\u6210assetbundle"),"\uff0c\u4eceab\u5305\u4e2d\u5b9e\u4f8b\u5316\u8d44\u6e90\uff0c\u624d\u80fd\u6b63\u786e\u8fd8\u539f\u811a\u672c\u3002"),(0,o.kt)("admonition",{type:"danger"},(0,o.kt)("p",{parentName:"admonition"},(0,o.kt)("strong",{parentName:"p"},"\u5982\u679c\u5c06\u70ed\u66f4\u65b0\u811a\u672c\u6302\u8f7d\u5230Resources\u7b49\u968f\u4e3b\u5305\u7684\u8d44\u6e90\u4e0a\uff0c\u4f1a\u53d1\u751fscripting missing\u7684\u9519\u8bef\uff01"),"\u4f46\u5982\u679c\u5148\u6253\u6210assetbundle\u5305\uff0c\u518d\u653e\u5230Resources\u4e0b\uff0c\u8fd0\u884c\u65f6\u52a0\u8f7d\u8be5\u968f\u5305assetbundle\u5219\u6ca1\u6709\u95ee\u9898\u3002")),(0,o.kt)("p",null,"\u7531\u4e8e\u6574\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u6253ab\u5305\uff0c\u6bd4\u8f83\u5197\u957f\uff0c\u8fd9\u513f\u4e0d\u8be6\u7ec6\u8bf4\u660e\u3002\u8bf7\u76f4\u63a5\u4f53\u9a8c hybridclr_trial \u9879\u76ee\uff08",(0,o.kt)("a",{parentName:"p",href:"https://github.com/focus-creative-games/hybridclr_trial"},"github")," \u6216 ",(0,o.kt)("a",{parentName:"p",href:"https://gitee.com/focus-creative-games/hybridclr_trial"},"gitee"),"\uff09\u3002"),(0,o.kt)("p",null,"\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\uff0c\u4f60\u53ea\u9700\u8981\u8bb0\u4f4f\uff1a\u6302\u8f7d\u70ed\u66f4\u65b0\u811a\u672c\u7684\u8d44\u6e90\uff08\u573a\u666f\u6216prefab\uff09\u5fc5\u987b\u6253\u5305\u6210ab\uff0c\u5728\u5b9e\u4f8b\u5316\u8d44\u6e90\u524d\u5148\u52a0\u8f7d\u70ed\u66f4\u65b0dll\u5373\u53ef\uff08\u8fd9\u4e2a\u8981\u6c42\u662f\u663e\u7136\u7684\uff01\uff09\u3002"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.0592ab3c.js b/assets/js/runtime~main.30b08ba4.js similarity index 76% rename from assets/js/runtime~main.0592ab3c.js rename to assets/js/runtime~main.30b08ba4.js index 467a3678..d73bf05b 100644 --- a/assets/js/runtime~main.0592ab3c.js +++ b/assets/js/runtime~main.30b08ba4.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,c,d,b,f={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return f[e].call(c.exports,c,c.exports,r),c.exports}r.m=f,e=[],r.O=(a,c,d,b)=>{if(!c){var f=1/0;for(i=0;i=b)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,b0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[c,d,b]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var b=Object.create(null);r.r(b);var f={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,r.d(b,f),b},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({12:"f160c361",53:"935f2afb",90:"2efe1410",220:"6ec19757",434:"90b957e4",533:"b2b675dd",685:"05f46752",688:"e044ccdf",852:"6704bb9d",964:"733c4d41",1176:"84b73551",1198:"72413e93",1433:"ff8c06e1",1477:"b2f554cd",1634:"e6335e6f",1744:"7bef7309",1752:"dd53d751",1977:"099d81ac",1998:"6d0a6812",2e3:"90e3b8d9",2034:"21ad55e6",2182:"f739fd9f",2306:"48d46c19",2365:"a7626ec9",2535:"814f3328",2616:"e9748e8f",2815:"918ca7cd",2828:"b7eeea20",2838:"635e1cda",2857:"cab0a0b1",2965:"c9dac562",3089:"a6aa9e1f",3131:"fe886eaa",3170:"b74f6ad3",3423:"7d20b2b1",3503:"744de10c",3608:"9e4087bc",3764:"7618167c",3777:"303a7ab0",3892:"0f4b3ece",4103:"e9ab53df",4130:"dd933416",4195:"c4f5d8e4",4369:"9e92f087",4475:"bacda3a9",4569:"39b1bd06",5041:"ebee79fe",5080:"88236a13",5153:"c9aab52f",5183:"032c34c3",5367:"26b576d2",5649:"5dd67a5f",5650:"5148d8fe",5659:"27b4bb7f",5746:"5a96aca1",5936:"1566bc1f",6103:"ccc49370",6290:"1d92ca72",6333:"41bb1898",6468:"4dfc0651",6729:"bdd7c4d4",6848:"f33e1a49",7020:"ba76a366",7040:"fbd8196d",7065:"80680481",7087:"1b21ecc3",7203:"f4f82255",7404:"742b5987",7589:"0ccd1bc3",7681:"a99908d5",7884:"c71319a4",7918:"17896441",7920:"1a4e3797",7991:"7faaab83",8052:"b7e34b9a",8063:"f93d3a31",8787:"c55163c5",9106:"3d345fd1",9124:"c4ad3b7e",9451:"355d470d",9462:"9b588bbf",9514:"1be78505",9671:"0e384e19",9817:"14eb3368",9822:"3d291b3d",9888:"026413ce"}[e]||e)+"."+{12:"3b57c09e",53:"d90132d1",90:"e2232209",220:"15827c36",434:"01d83772",533:"d838adc3",685:"a462ac2d",688:"91697c54",852:"349bb8ca",964:"f7189ca4",1176:"19d7f58c",1198:"a2d62704",1426:"f6ed8f65",1433:"d1e528c8",1477:"65b4b0f1",1634:"690dff03",1744:"12476551",1752:"9d2d5e36",1977:"2873fc9c",1998:"742d95ee",2e3:"cea902da",2034:"f05e7d12",2182:"ad078e06",2306:"4d90ead8",2365:"1a7ed67a",2535:"9d9ea10e",2616:"8ff4f04a",2815:"0525f1e5",2828:"cbb0c6af",2838:"5892eafb",2857:"e6128cda",2965:"fe48b928",3089:"d1467cbe",3131:"a8704c94",3170:"fef9d017",3423:"463916d8",3503:"64d89e78",3608:"e989768d",3764:"3d52885e",3777:"f657297a",3892:"08855efb",4103:"b15d6b20",4130:"9f3bde5c",4195:"e054211d",4369:"356f50d5",4475:"8c2e86cf",4569:"e57052c7",4972:"3d0f496c",5041:"3e77bb41",5080:"ce7b4e42",5153:"4a39de02",5183:"3d592d84",5367:"467ebaf3",5649:"9ad910cb",5650:"8911351c",5659:"86c2844f",5746:"f49f1414",5936:"88c9b8e5",6048:"779f8c90",6103:"1d3911bc",6186:"170d1bc9",6290:"3e88330e",6333:"1eb39c27",6468:"c5633afd",6729:"29db6262",6848:"ab097966",6945:"94f4a660",7020:"2330e1fc",7040:"28169402",7065:"e23c508d",7087:"e4808fe0",7203:"cbedbc3b",7404:"5809c436",7589:"3ae65c80",7681:"bbfc0c56",7884:"34b74eaa",7918:"d5cb46e3",7920:"bd81094a",7991:"152c94b7",8052:"022da9e7",8063:"93bf2927",8787:"ec56e041",8894:"91734414",9106:"689ba83f",9124:"fedac576",9451:"594f8519",9462:"4798c258",9514:"d5cf2d0b",9671:"266370e9",9817:"0f68630a",9822:"94f115f8",9888:"dd84d40b"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},b="my-website:",r.l=(e,a,c,f)=>{if(d[e])d[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var b=d[e];if(delete d[e],t.parentNode&&t.parentNode.removeChild(t),b&&b.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/",r.gca=function(e){return e={17896441:"7918",80680481:"7065",f160c361:"12","935f2afb":"53","2efe1410":"90","6ec19757":"220","90b957e4":"434",b2b675dd:"533","05f46752":"685",e044ccdf:"688","6704bb9d":"852","733c4d41":"964","84b73551":"1176","72413e93":"1198",ff8c06e1:"1433",b2f554cd:"1477",e6335e6f:"1634","7bef7309":"1744",dd53d751:"1752","099d81ac":"1977","6d0a6812":"1998","90e3b8d9":"2000","21ad55e6":"2034",f739fd9f:"2182","48d46c19":"2306",a7626ec9:"2365","814f3328":"2535",e9748e8f:"2616","918ca7cd":"2815",b7eeea20:"2828","635e1cda":"2838",cab0a0b1:"2857",c9dac562:"2965",a6aa9e1f:"3089",fe886eaa:"3131",b74f6ad3:"3170","7d20b2b1":"3423","744de10c":"3503","9e4087bc":"3608","7618167c":"3764","303a7ab0":"3777","0f4b3ece":"3892",e9ab53df:"4103",dd933416:"4130",c4f5d8e4:"4195","9e92f087":"4369",bacda3a9:"4475","39b1bd06":"4569",ebee79fe:"5041","88236a13":"5080",c9aab52f:"5153","032c34c3":"5183","26b576d2":"5367","5dd67a5f":"5649","5148d8fe":"5650","27b4bb7f":"5659","5a96aca1":"5746","1566bc1f":"5936",ccc49370:"6103","1d92ca72":"6290","41bb1898":"6333","4dfc0651":"6468",bdd7c4d4:"6729",f33e1a49:"6848",ba76a366:"7020",fbd8196d:"7040","1b21ecc3":"7087",f4f82255:"7203","742b5987":"7404","0ccd1bc3":"7589",a99908d5:"7681",c71319a4:"7884","1a4e3797":"7920","7faaab83":"7991",b7e34b9a:"8052",f93d3a31:"8063",c55163c5:"8787","3d345fd1":"9106",c4ad3b7e:"9124","355d470d":"9451","9b588bbf":"9462","1be78505":"9514","0e384e19":"9671","14eb3368":"9817","3d291b3d":"9822","026413ce":"9888"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,c)=>{var d=r.o(e,a)?e[a]:void 0;if(0!==d)if(d)c.push(d[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var b=new Promise(((c,b)=>d=e[a]=[c,b]));c.push(d[2]=b);var f=r.p+r.u(a),t=new Error;r.l(f,(c=>{if(r.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var b=c&&("load"===c.type?"missing":c.type),f=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+b+": "+f+")",t.name="ChunkLoadError",t.type=b,t.request=f,d[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var d,b,f=c[0],t=c[1],o=c[2],n=0;if(f.some((a=>0!==e[a]))){for(d in t)r.o(t,d)&&(r.m[d]=t[d]);if(o)var i=o(r)}for(a&&a(c);n{"use strict";var e,a,c,d,f,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return b[e].call(c.exports,c,c.exports,r),c.exports}r.m=b,e=[],r.O=(a,c,d,f)=>{if(!c){var b=1/0;for(i=0;i=f)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,d,f]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var f=Object.create(null);r.r(f);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(f,b),f},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({12:"f160c361",53:"935f2afb",90:"2efe1410",220:"6ec19757",434:"90b957e4",533:"b2b675dd",685:"05f46752",688:"e044ccdf",852:"6704bb9d",964:"733c4d41",1176:"84b73551",1198:"72413e93",1433:"ff8c06e1",1477:"b2f554cd",1634:"e6335e6f",1744:"7bef7309",1752:"dd53d751",1977:"099d81ac",1998:"6d0a6812",2e3:"90e3b8d9",2034:"21ad55e6",2182:"f739fd9f",2306:"48d46c19",2365:"a7626ec9",2535:"814f3328",2616:"e9748e8f",2815:"918ca7cd",2828:"b7eeea20",2838:"635e1cda",2857:"cab0a0b1",2965:"c9dac562",3089:"a6aa9e1f",3131:"fe886eaa",3170:"b74f6ad3",3423:"7d20b2b1",3503:"744de10c",3608:"9e4087bc",3764:"7618167c",3777:"303a7ab0",3892:"0f4b3ece",4103:"e9ab53df",4130:"dd933416",4195:"c4f5d8e4",4369:"9e92f087",4475:"bacda3a9",4569:"39b1bd06",5041:"ebee79fe",5080:"88236a13",5153:"c9aab52f",5183:"032c34c3",5367:"26b576d2",5649:"5dd67a5f",5650:"5148d8fe",5659:"27b4bb7f",5746:"5a96aca1",5936:"1566bc1f",6103:"ccc49370",6290:"1d92ca72",6333:"41bb1898",6468:"4dfc0651",6729:"bdd7c4d4",6848:"f33e1a49",7020:"ba76a366",7040:"fbd8196d",7065:"80680481",7087:"1b21ecc3",7203:"f4f82255",7404:"742b5987",7589:"0ccd1bc3",7681:"a99908d5",7884:"c71319a4",7918:"17896441",7920:"1a4e3797",7991:"7faaab83",8052:"b7e34b9a",8063:"f93d3a31",8787:"c55163c5",9106:"3d345fd1",9124:"c4ad3b7e",9451:"355d470d",9462:"9b588bbf",9514:"1be78505",9671:"0e384e19",9817:"14eb3368",9822:"3d291b3d",9888:"026413ce"}[e]||e)+"."+{12:"3b57c09e",53:"d90132d1",90:"e2232209",220:"15827c36",434:"01d83772",533:"d838adc3",685:"a462ac2d",688:"91697c54",852:"349bb8ca",964:"f7189ca4",1176:"19d7f58c",1198:"a2d62704",1426:"f6ed8f65",1433:"d1e528c8",1477:"65b4b0f1",1634:"690dff03",1744:"12476551",1752:"9d2d5e36",1977:"2873fc9c",1998:"742d95ee",2e3:"cea902da",2034:"f05e7d12",2182:"ad078e06",2306:"4d90ead8",2365:"1a7ed67a",2535:"9d9ea10e",2616:"8ff4f04a",2815:"0525f1e5",2828:"cbb0c6af",2838:"5892eafb",2857:"e6128cda",2965:"fe48b928",3089:"d1467cbe",3131:"a8704c94",3170:"fef9d017",3423:"463916d8",3503:"64d89e78",3608:"e989768d",3764:"3d52885e",3777:"f657297a",3892:"08855efb",4103:"b15d6b20",4130:"9f3bde5c",4195:"e054211d",4369:"356f50d5",4475:"8c2e86cf",4569:"e57052c7",4972:"3d0f496c",5041:"3e77bb41",5080:"ce7b4e42",5153:"4a39de02",5183:"3d592d84",5367:"467ebaf3",5649:"9ad910cb",5650:"8911351c",5659:"86c2844f",5746:"f49f1414",5936:"88c9b8e5",6048:"779f8c90",6103:"1d3911bc",6186:"170d1bc9",6290:"3e88330e",6333:"1eb39c27",6468:"c5633afd",6729:"2f59ebfd",6848:"ab097966",6945:"94f4a660",7020:"2330e1fc",7040:"28169402",7065:"e23c508d",7087:"e4808fe0",7203:"cbedbc3b",7404:"5809c436",7589:"3ae65c80",7681:"bbfc0c56",7884:"34b74eaa",7918:"d5cb46e3",7920:"bd81094a",7991:"152c94b7",8052:"022da9e7",8063:"93bf2927",8787:"ec56e041",8894:"91734414",9106:"04cb8255",9124:"fedac576",9451:"594f8519",9462:"4798c258",9514:"d5cf2d0b",9671:"266370e9",9817:"0f68630a",9822:"94f115f8",9888:"dd84d40b"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},f="my-website:",r.l=(e,a,c,b)=>{if(d[e])d[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var f=d[e];if(delete d[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/",r.gca=function(e){return e={17896441:"7918",80680481:"7065",f160c361:"12","935f2afb":"53","2efe1410":"90","6ec19757":"220","90b957e4":"434",b2b675dd:"533","05f46752":"685",e044ccdf:"688","6704bb9d":"852","733c4d41":"964","84b73551":"1176","72413e93":"1198",ff8c06e1:"1433",b2f554cd:"1477",e6335e6f:"1634","7bef7309":"1744",dd53d751:"1752","099d81ac":"1977","6d0a6812":"1998","90e3b8d9":"2000","21ad55e6":"2034",f739fd9f:"2182","48d46c19":"2306",a7626ec9:"2365","814f3328":"2535",e9748e8f:"2616","918ca7cd":"2815",b7eeea20:"2828","635e1cda":"2838",cab0a0b1:"2857",c9dac562:"2965",a6aa9e1f:"3089",fe886eaa:"3131",b74f6ad3:"3170","7d20b2b1":"3423","744de10c":"3503","9e4087bc":"3608","7618167c":"3764","303a7ab0":"3777","0f4b3ece":"3892",e9ab53df:"4103",dd933416:"4130",c4f5d8e4:"4195","9e92f087":"4369",bacda3a9:"4475","39b1bd06":"4569",ebee79fe:"5041","88236a13":"5080",c9aab52f:"5153","032c34c3":"5183","26b576d2":"5367","5dd67a5f":"5649","5148d8fe":"5650","27b4bb7f":"5659","5a96aca1":"5746","1566bc1f":"5936",ccc49370:"6103","1d92ca72":"6290","41bb1898":"6333","4dfc0651":"6468",bdd7c4d4:"6729",f33e1a49:"6848",ba76a366:"7020",fbd8196d:"7040","1b21ecc3":"7087",f4f82255:"7203","742b5987":"7404","0ccd1bc3":"7589",a99908d5:"7681",c71319a4:"7884","1a4e3797":"7920","7faaab83":"7991",b7e34b9a:"8052",f93d3a31:"8063",c55163c5:"8787","3d345fd1":"9106",c4ad3b7e:"9124","355d470d":"9451","9b588bbf":"9462","1be78505":"9514","0e384e19":"9671","14eb3368":"9817","3d291b3d":"9822","026413ce":"9888"}[e]||e,r.p+r.u(e)},(()=>{var e={1303:0,532:0};r.f.j=(a,c)=>{var d=r.o(e,a)?e[a]:void 0;if(0!==d)if(d)c.push(d[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var f=new Promise(((c,f)=>d=e[a]=[c,f]));c.push(d[2]=f);var b=r.p+r.u(a),t=new Error;r.l(b,(c=>{if(r.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var f=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+f+": "+b+")",t.name="ChunkLoadError",t.type=f,t.request=b,d[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var d,f,b=c[0],t=c[1],o=c[2],n=0;if(b.some((a=>0!==e[a]))){for(d in t)r.o(t,d)&&(r.m[d]=t[d]);if(o)var i=o(r)}for(a&&a(c);n