Skip to content

Commit 93318b2

Browse files
author
Jeffrey Lanters
authored
Merge pull request #18 from jeffreylanters/development
Typo 🤓
2 parents 66268f1 + 8cf8e45 commit 93318b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ We also allow you to call JavaScript functions within React from the Unity Conte
126126
```js
127127
RegisterExternalListener (methodName: String, callback: Function): void;
128128
```
129-
Where methodName is the name of a method in your JSLib, this method will be binded to the current browser UnityReactWebGL object so you can refer to it in your JSLib; callback will be a function, which takes one parameter with the value passed by your content. Note that it is recommended to register the callbacks before loading the Unity content. For example:
129+
Where methodName is the name of a method in your JSLib, this method will be binded to the current browser ReactUnityWebGL object so you can refer to it in your JSLib; callback will be a function, which takes one parameter with the value passed by your content. Note that it is recommended to register the callbacks before loading the Unity content. For example:
130130
```js
131131
import React from 'react'
132132
import { RegisterExternalListener } from 'react-unity-webgl'
@@ -140,11 +140,11 @@ export class App extends React.Component {
140140
}
141141
}
142142
```
143-
In order to use the function, you have to create a JSLib file to bind the communication. The listener registered in React is now available in the UnityReactWebGL object in any JSLib file. You can now create a JSLib file and make calls`Assets/Plugins/WebGL/MyPlugin.jslib`.
143+
In order to use the function, you have to create a JSLib file to bind the communication. The listener registered in React is now available in the ReactUnityWebGL object in any JSLib file. You can now create a JSLib file and get started. `Assets/Plugins/WebGL/MyPlugin.jslib`.
144144
```js
145145
mergeInto (LibraryManager.library, {
146146
OpenMenu: function (menuId) {
147-
UnityReactWebGL.OpenMenu (menuId);
147+
ReactUnityWebGL.OpenMenu (menuId);
148148
}
149149
});
150150
```

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": "6.3.0",
3+
"version": "6.3.1",
44
"description": "A Unity WebGL component for your React application",
55
"main": "library/index.js",
66
"types": "source/types.d.ts",

0 commit comments

Comments
 (0)