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
@@ -120,25 +131,10 @@ Legacy ways of calling JavaScript code from Unity. You can use the Application.E
120
131
121
132
122
133
123
-
# Styling
124
-
The following hierarchy will be applied to the React Unity WebGL component. Feel free to apply any styles to the component.
125
-
126
-
```scss
127
-
.unity {
128
-
.unity-container {
129
-
canvas {
130
-
/* don't forget to set my width and height! */
131
-
}
132
-
}
133
-
.unity-loader {
134
-
.loading-bar {
135
-
.loading-fill {
136
-
/* the width will be set by the component */
137
-
}
138
-
}
139
-
}
140
-
}
141
-
```
134
+
# Notes
135
+
Make sure your Unity build is in your public folder, this is due to the component **and** Unity itself will load files in Runtime and not Compile time.
136
+
## 5.x to 6.x Upgrade note
137
+
When upgrading from 5.x to 6.x, make sure you add the `loader` prop to the Unity component and remove the script tag from your HTML page refering to the UnityLoader.js file. See [Usage](#usage) for further details.
0 commit comments