Skip to content

Commit efd8309

Browse files
committed
Deploying to gh-pages from @ c1ca50f 🚀
1 parent 2a189c1 commit efd8309

File tree

162 files changed

+22666
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+22666
-177
lines changed

404.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

500.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
1.12 MB
Binary file not shown.

Unity/injectable/Build/WebInjectable.framework.js

Lines changed: 20990 additions & 2 deletions
Large diffs are not rendered by default.

Unity/injectable/Build/WebInjectable.loader.js

Lines changed: 1437 additions & 1 deletion
Large diffs are not rendered by default.
53 MB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"content":"[[\"$r\",\"MaxWidth\",\"last\",{\"children\":[[\"$r\",\"p\",null,{\"children\":\"If you are running into an issue, this section will help you resolve it. Here are some common issues and their solutions.\"}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"ui-isnt-working-after-build\",\"children\":\"UI isn’t working after build\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"If UI is working correctly in Editor, but it is not working after you build the application and try to run it in your target platform, this can be caused by one of the following:\"}],\"\\n\",[\"$r\",\"h4\",null,{\"id\":\"you-forgot-to-build-ui-code\",\"children\":\"You forgot to build UI code\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"You must build your React project to a single \",[\"$r\",\"code\",null,{\"children\":\".js\"}],\" file for it to work in built project. Make sure to run \",[\"$r\",\"code\",null,{\"children\":\"npm run build\"}],\" in your React project. It will report the path to the generated files. Then go to Unity Editor and make sure the \",[\"$r\",\"code\",null,{\"children\":\"ReactRenderer\"}],\" component is referencing that file correctly.\"]}],\"\\n\",[\"$r\",\"h4\",null,{\"id\":\"you-have-an-error-in-your-code\",\"children\":\"You have an error in your code\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Sometimes there are errors that don’t happen in Editor, but happens when you are testing in the target platform. Please check the error logs to see if you have an error, and if it’s related to ReactUnity, report it as a bug.\"}],\"\\n\",[\"$r\",\"h4\",null,{\"id\":\"issues-caused-by-code-stripping\",\"children\":\"Issues caused by Code stripping\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"When building with IL2CPP, Unity will strip out unused code to make the build size smaller and faster. And because ReactUnity uses reflection to reach code, Unity cannot detect that code and will strip it away as well. You can read more about code stripping \",[\"$r\",\"a\",null,{\"href\":\"https://docs.unity3d.com/Manual/ManagedCodeStripping.html\",\"target\":\"_blank\",\"rel\":\"nofollow noopener noreferrer\",\"children\":\"here\"}],\".\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"The easy way to solve this is adding Preserve attribute to methods you use in your code:\"}],\"\\n\",[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-cs\",\"children\":\"[UnityEngine.Scripting.Preserve]\\npublic void MyCode() {\\n...\\n}\\n\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"Another way is to add \",[\"$r\",\"code\",null,{\"children\":\"[assembly: UnityEngine.Scripting.Preserve]\"}],\" to anywhere in your code to prevent stripping in all of that assembly.\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"Unity can also strip unused engine code, but that code may be used by ReactUnity. The way to prevent that is by using a \",[\"$r\",\"code\",null,{\"children\":\"link.xml\"}],\" file. For example, you may use this \",[\"$r\",\"code\",null,{\"children\":\"link.xml\"}],\"file if you are using a VideoPlayer component:\"]}],\"\\n\",[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-xml\",\"children\":\"<linker>\\n <assembly fullname=\\\"UnityEngine.VideoModule\\\">\\n <type fullname=\\\"UnityEngine.Video.VideoPlayer\\\" preserve=\\\"all\\\"/>\\n </assembly>\\n\\n <assembly fullname=\\\"Assembly-CSharp\\\"/>\\n\\n <assembly fullname=\\\"ReactUnity\\\"/>\\n</linker>\\n\"}]}],\"\\n\",[\"$r\",\"h4\",null,{\"id\":\"it-doesnt-work-in-android-when-minify-is-enabled\",\"children\":\"It doesn’t work in Android when minify is enabled\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"A \",[\"$r\",\"code\",null,{\"children\":\"Custom Proguard File\"}],\" must be created in the Project settings and add this code must be added:\"]}],\"\\n\",[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"children\":\"-keep class com.facebook.yoga.** { *; }\\n\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"See \",[\"$r\",\"a\",null,{\"href\":\"https://github.com/ReactUnity/core/issues/111\",\"target\":\"_blank\",\"rel\":\"nofollow noopener noreferrer\",\"children\":\"this issue\"}],\" for details.\"]}]]}]]","toc":"[{\"url\":\"#\",\"text\":\"Overview\",\"depth\":2},{\"url\":\"#ui-isnt-working-after-build\",\"depth\":2,\"text\":\"UI isn’t working after build\"}]","meta":{"title":"Troubleshooting"}},"__N_SSG":true}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"content":"[[\"$r\",\"MaxWidth\",\"2\",{\"children\":[[\"$r\",\"p\",null,{\"children\":[\"Check out the \",[\"$r\",\"a\",null,{\"href\":\"https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter\",\"target\":\"_blank\",\"rel\":\"nofollow noopener noreferrer\",\"children\":\"MDN\"}],\" for how to use.\"]}],\"\\n\"]}],[\"$r\",\"Sandpack\",null,{\"children\":[[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-js\",\"children\":\"export default function App() {\\n return <>\\n <view className=\\\"el\\\" onDrag={(x,t) => {\\n t.Style.left = x.position.x - x.pressPosition.x;\\n t.Style.bottom = x.position.y - x.pressPosition.y;\\n }} />\\n </>;\\n}\\n\\n\"}]}],[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-css\",\"meta\":\"active\",\"children\":\".el {\\n margin: auto;\\n width: 300px;\\n height: 300px;\\n background: rgba(0,0,0,0.02);\\n cursor: move;\\n box-shadow: 2px 2px 16px -8px black, 0 0 4px 24px inset rgba(0,0,0,0.06);\\n backdrop-filter: blur(4px) grain(0.04) pixelate(4px) hue-rotate(-25deg);\\n}\\n\"}]}]]}]]","toc":"[]","meta":{"title":"Backdrop Filter","layout":"API"}},"__N_SSG":true}

_next/data/ZaSZKdJXFYGDvlNTXCbkP/reference/css/backdrop-filter.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/WUlgskGQs754LQXgUofG5/_buildManifest.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_next/static/ZaSZKdJXFYGDvlNTXCbkP/_buildManifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/996-bf23c1f0067640b8.js renamed to _next/static/chunks/996-915c3031fb5bb509.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_next/static/chunks/ab6e12f8.3d92e2d842380fe0.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

_next/static/chunks/ab6e12f8.85ee919c01c570e2.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_next/static/chunks/webpack-666b1c1e2be55163.js renamed to _next/static/chunks/webpack-1cf73b56e638b1a7.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_next/static/css/abbe6c0e63bd05e4.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

_next/static/css/f73260d1617b0f00.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)