You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2023. It is now read-only.
For released version numbers check the releases tab.
20
+
19
21
## How to start
20
22
21
23
1. In your unity `Assets` folder create a `Resources` folder.
@@ -31,23 +33,22 @@ const style = {
31
33
height:"80%",
32
34
backgroundColor:"#ffffff",
33
35
fontSize:21,
34
-
alignSelf:'center',
35
-
alignItems:'center',
36
-
justifyContent:'center'
36
+
alignSelf:'Center',
37
+
alignItems:'Center',
38
+
justifyContent:'Center'
37
39
}
38
40
39
41
functionApp() {
40
-
return<element style={style}>
42
+
return<visualElement style={style}>
41
43
Hello Unity!
42
-
</element>
44
+
</visualElement>
43
45
}
44
46
45
47
render(<App />)
46
48
```
47
49
48
-
4. In your Unity scene create a new empty object and add `ReactRenderer` and `EventSystem` monobehaviours to it with the following settings.
49
-
50
-

50
+
4. In your Unity scene create a new empty object and add `PanelRenderer` and `EventSystem` monobehaviours to it as you would normaly do for runtime UIElements.
51
+
5. Attach `ReactRuntime` monobehaviour to the object and drag your `index.jsx` into the `Root` field.
51
52
52
53
Set the root property to your `index.jsx`. Just drag it from your `Resources` folder into the field.
0 commit comments