Skip to content

Commit 25f2099

Browse files
Updated Readme and package version
1 parent b1ab6cf commit 25f2099

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ export class App extends Component {
3030
}
3131
```
3232

33+
## Optional attributes
34+
35+
```js
36+
// Overruling the module
37+
<Unity src="Build/myGame.json" module={this.myCustomModule} />
38+
```
39+
3340
# communication
3441
Unity allows you to send Javascript messages to the Unity content. In order to do so using React you have to import the Message function from 'react-unity-webgl'. The first parameter is the target game object name, the next is the method name, and the last is a optional parameter value.
3542

@@ -84,4 +91,4 @@ The player will be injected in the a component with the className "unity-contain
8491
<script src="Build/UnityLoader.js"></script>
8592
<script src="compiled/bundle.js"></script>
8693
</html>
87-
```
94+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-unity-webgl",
3-
"version": "5.7.0",
3+
"version": "5.7.1",
44
"description": "A Unity WebGL component for your React application",
55
"main": "lib/react-unity-webgl.js",
66
"scripts": {

0 commit comments

Comments
 (0)