Skip to content

Commit 3093a9d

Browse files
committed
Deploying to gh-pages from @ 2fa0ef3 🚀
1 parent 5bb270c commit 3093a9d

File tree

155 files changed

+281
-216
lines changed

Some content is hidden

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

155 files changed

+281
-216
lines changed

404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Not Found • React</title><meta name="description" content="A JavaScript library for building user interfaces in Unity"/><meta property="fb:app_id" content="623268441017527"/><meta property="og:type" content="website"/><meta property="og:url" content="https://reactunity.github.io/404"/><meta property="og:title" content="Not Found"/><meta property="og:description" content="A JavaScript library for building user interfaces in Unity"/><meta property="og:image" content="https://reactunity.github.io/images/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:site" content="@reactjs"/><meta name="twitter:creator" content="@reactjs"/><meta name="twitter:title" content="Not Found"/><meta name="twitter:description" content="A JavaScript library for building user interfaces in Unity"/><meta name="twitter:image" content="https://reactunity.github.io/images/logo.png"/><link rel="preload" href="/fonts/Source-Code-Pro-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Md.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Bd.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><meta name="next-head-count" content="21"/><link rel="preload" href="/_next/static/css/e0c323db45d4a086.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e0c323db45d4a086.css" data-n-g=""/><link rel="preload" href="/_next/static/css/0b8b3ce57aa1c046.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b8b3ce57aa1c046.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-e7a73e64d29043dd.js" defer=""></script><script src="/_next/static/chunks/framework-b759e809ec16812b.js" defer=""></script><script src="/_next/static/chunks/main-1411bdc9f5b12ae7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1290549368940de4.js" defer=""></script><script src="/_next/static/chunks/850-dbd9a9e535e4cb85.js" defer=""></script><script src="/_next/static/chunks/408-1b5036ccf87f08b0.js" defer=""></script><script src="/_next/static/chunks/pages/404-d985fff0e59761c9.js" defer=""></script><script src="/_next/static/YFtyMVEZm_wCFoP-7EYeR/_buildManifest.js" defer=""></script><script src="/_next/static/YFtyMVEZm_wCFoP-7EYeR/_ssgManifest.js" defer=""></script></head><body class="font-sans antialiased text-lg bg-wash dark:bg-wash-dark text-secondary dark:text-secondary-dark leading-base"><script>
1+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Not Found • React</title><meta name="description" content="A JavaScript library for building user interfaces in Unity"/><meta property="fb:app_id" content="623268441017527"/><meta property="og:type" content="website"/><meta property="og:url" content="https://reactunity.github.io/404"/><meta property="og:title" content="Not Found"/><meta property="og:description" content="A JavaScript library for building user interfaces in Unity"/><meta property="og:image" content="https://reactunity.github.io/images/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:site" content="@reactjs"/><meta name="twitter:creator" content="@reactjs"/><meta name="twitter:title" content="Not Found"/><meta name="twitter:description" content="A JavaScript library for building user interfaces in Unity"/><meta name="twitter:image" content="https://reactunity.github.io/images/logo.png"/><link rel="preload" href="/fonts/Source-Code-Pro-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Md.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Bd.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><meta name="next-head-count" content="21"/><link rel="preload" href="/_next/static/css/e0c323db45d4a086.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e0c323db45d4a086.css" data-n-g=""/><link rel="preload" href="/_next/static/css/0b8b3ce57aa1c046.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b8b3ce57aa1c046.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-e7a73e64d29043dd.js" defer=""></script><script src="/_next/static/chunks/framework-b759e809ec16812b.js" defer=""></script><script src="/_next/static/chunks/main-1411bdc9f5b12ae7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1290549368940de4.js" defer=""></script><script src="/_next/static/chunks/850-dbd9a9e535e4cb85.js" defer=""></script><script src="/_next/static/chunks/408-0871fb75df43b245.js" defer=""></script><script src="/_next/static/chunks/pages/404-d985fff0e59761c9.js" defer=""></script><script src="/_next/static/PSRldgRinKmhef8091z4s/_buildManifest.js" defer=""></script><script src="/_next/static/PSRldgRinKmhef8091z4s/_ssgManifest.js" defer=""></script></head><body class="font-sans antialiased text-lg bg-wash dark:bg-wash-dark text-secondary dark:text-secondary-dark leading-base"><script>
22
(function () {
33
function setTheme(newTheme) {
44
window.__theme = newTheme;
@@ -42,4 +42,4 @@
4242
gtag('js', new Date());
4343

4444
gtag('config', 'G-LS8ZK1BB3T');
45-
</script></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"YFtyMVEZm_wCFoP-7EYeR","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
45+
</script></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"PSRldgRinKmhef8091z4s","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>

500.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Something Went Wrong • React</title><meta name="description" content="A JavaScript library for building user interfaces in Unity"/><meta property="fb:app_id" content="623268441017527"/><meta property="og:type" content="website"/><meta property="og:url" content="https://reactunity.github.io/500"/><meta property="og:title" content="Something Went Wrong"/><meta property="og:description" content="A JavaScript library for building user interfaces in Unity"/><meta property="og:image" content="https://reactunity.github.io/images/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:site" content="@reactjs"/><meta name="twitter:creator" content="@reactjs"/><meta name="twitter:title" content="Something Went Wrong"/><meta name="twitter:description" content="A JavaScript library for building user interfaces in Unity"/><meta name="twitter:image" content="https://reactunity.github.io/images/logo.png"/><link rel="preload" href="/fonts/Source-Code-Pro-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Md.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Bd.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><meta name="next-head-count" content="21"/><link rel="preload" href="/_next/static/css/e0c323db45d4a086.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e0c323db45d4a086.css" data-n-g=""/><link rel="preload" href="/_next/static/css/0b8b3ce57aa1c046.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b8b3ce57aa1c046.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-e7a73e64d29043dd.js" defer=""></script><script src="/_next/static/chunks/framework-b759e809ec16812b.js" defer=""></script><script src="/_next/static/chunks/main-1411bdc9f5b12ae7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1290549368940de4.js" defer=""></script><script src="/_next/static/chunks/850-dbd9a9e535e4cb85.js" defer=""></script><script src="/_next/static/chunks/408-1b5036ccf87f08b0.js" defer=""></script><script src="/_next/static/chunks/pages/500-71a0472615a5b446.js" defer=""></script><script src="/_next/static/YFtyMVEZm_wCFoP-7EYeR/_buildManifest.js" defer=""></script><script src="/_next/static/YFtyMVEZm_wCFoP-7EYeR/_ssgManifest.js" defer=""></script></head><body class="font-sans antialiased text-lg bg-wash dark:bg-wash-dark text-secondary dark:text-secondary-dark leading-base"><script>
1+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><link rel="preconnect" href="https://3Q7HZJV4X0-dsn.algolia.net"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Something Went Wrong • React</title><meta name="description" content="A JavaScript library for building user interfaces in Unity"/><meta property="fb:app_id" content="623268441017527"/><meta property="og:type" content="website"/><meta property="og:url" content="https://reactunity.github.io/500"/><meta property="og:title" content="Something Went Wrong"/><meta property="og:description" content="A JavaScript library for building user interfaces in Unity"/><meta property="og:image" content="https://reactunity.github.io/images/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:site" content="@reactjs"/><meta name="twitter:creator" content="@reactjs"/><meta name="twitter:title" content="Something Went Wrong"/><meta name="twitter:description" content="A JavaScript library for building user interfaces in Unity"/><meta name="twitter:image" content="https://reactunity.github.io/images/logo.png"/><link rel="preload" href="/fonts/Source-Code-Pro-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Md.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><link rel="preload" href="https://reactunity.github.io/fonts/Optimistic_Display_W_Bd.woff2" as="font" type="font/woff2" crossorigin="anonymous"/><meta name="next-head-count" content="21"/><link rel="preload" href="/_next/static/css/e0c323db45d4a086.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e0c323db45d4a086.css" data-n-g=""/><link rel="preload" href="/_next/static/css/0b8b3ce57aa1c046.css" as="style"/><link rel="stylesheet" href="/_next/static/css/0b8b3ce57aa1c046.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-e7a73e64d29043dd.js" defer=""></script><script src="/_next/static/chunks/framework-b759e809ec16812b.js" defer=""></script><script src="/_next/static/chunks/main-1411bdc9f5b12ae7.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1290549368940de4.js" defer=""></script><script src="/_next/static/chunks/850-dbd9a9e535e4cb85.js" defer=""></script><script src="/_next/static/chunks/408-0871fb75df43b245.js" defer=""></script><script src="/_next/static/chunks/pages/500-71a0472615a5b446.js" defer=""></script><script src="/_next/static/PSRldgRinKmhef8091z4s/_buildManifest.js" defer=""></script><script src="/_next/static/PSRldgRinKmhef8091z4s/_ssgManifest.js" defer=""></script></head><body class="font-sans antialiased text-lg bg-wash dark:bg-wash-dark text-secondary dark:text-secondary-dark leading-base"><script>
22
(function () {
33
function setTheme(newTheme) {
44
window.__theme = newTheme;
@@ -42,4 +42,4 @@
4242
gtag('js', new Date());
4343

4444
gtag('config', 'G-LS8ZK1BB3T');
45-
</script></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"YFtyMVEZm_wCFoP-7EYeR","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
45+
</script></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"PSRldgRinKmhef8091z4s","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"content":"[[\"$r\",\"MaxWidth\",\"20\",{\"children\":[[\"$r\",\"Intro\",null,{\"children\":[\"$r\",\"p\",null,{\"children\":\"Interoperability (Interop for short) is the exchange of information between two systems. In the case of ReactUnity, the two systems are React (Javascript), and the Unity (C#). Interop refers to the exchange of data, function calls and events between these two systems.\"}]}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"ways-to-achieve-interop\",\"children\":\"Ways to achieve interop\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"There are several ways to achieve interop in ReactUnity.\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"globals-object\",\"children\":[[\"$r\",\"code\",null,{\"children\":\"Globals\"}],\" object\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"This method uses the \",[\"$r\",\"code\",null,{\"children\":\"Globals\"}],\" object to have two-way communication between React and C#. Also, \",[\"$r\",\"code\",null,{\"children\":\"useGlobals\"}],\" is a hook that is available in React side and it re-renders the component when \",[\"$r\",\"code\",null,{\"children\":\"Globals\"}],\" object changes.\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"API reference for \",[\"$r\",\"code\",null,{\"children\":\"useGlobals\"}],\" can be found \",[\"$r\",\"a\",null,{\"href\":\"/reference/api/useglobals\",\"children\":\"here\"}],\".\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"useReactiveValue\"}],\" is a further hook that can be used to re-render on individual property changes of a C# object, see \",[\"$r\",\"a\",null,{\"href\":\"/reference/api/usereactivevalue\",\"children\":\"here\"}],\".\"]}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"interop-namespace\",\"children\":[[\"$r\",\"code\",null,{\"children\":\"Interop\"}],\" namespace\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"Interop\"}],\" is a namespace in React side that can be used to call C# and Unity static functions from React side. It allows doing C# operations without going out of Javascript.\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"code\",null,{\"children\":\"Interop\"}],\" namespace exports some C# namespaces that you can use. These are: \",[\"$r\",\"code\",null,{\"children\":\"System\"}],\", \",[\"$r\",\"code\",null,{\"children\":\"Unity\"}],\" and \",[\"$r\",\"code\",null,{\"children\":\"UnityEngine\"}],\".\"]}],\"\\n\"]}],[\"$r\",\"Sandpack\",null,{\"children\":[\"$r\",\"pre\",null,{\"children\":[\"$r\",\"code\",null,{\"className\":\"language-js\",\"children\":\"export default function App() {\\n const ref = React.useRef();\\n const randomize = () => {\\n const r = Math.random();\\n const g = Math.random();\\n const b = Math.random();\\n const color = new Interop.UnityEngine.Color(r, g, b);\\n ref.current.Style.backgroundColor = color;\\n };\\n\\n return <>\\n <button onClick={randomize} ref={ref}>\\n Randomize color\\n </button>\\n </>;\\n}\\n\"}]}]}]]","toc":"[{\"url\":\"#\",\"text\":\"Overview\",\"depth\":2},{\"url\":\"#ways-to-achieve-interop\",\"depth\":2,\"text\":\"Ways to achieve interop\"},{\"url\":\"#globals-object\",\"depth\":3,\"text\":[[\"$r\",\"code\",null,{\"children\":\"Globals\"}],\" object\"]},{\"url\":\"#interop-namespace\",\"depth\":3,\"text\":[[\"$r\",\"code\",null,{\"children\":\"Interop\"}],\" namespace\"]}]","meta":{"title":"React - C# communication (Interop)"}},"__N_SSG":true}

0 commit comments

Comments
 (0)