From 8cf8e45ed4a8e03370294913e263cbb585db0ae4 Mon Sep 17 00:00:00 2001 From: Jeffrey Lanters Date: Wed, 20 Dec 2017 12:07:23 +0100 Subject: [PATCH] =?UTF-8?q?Typo=20=F0=9F=A4=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ddc585b6..c6b1f437 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ We also allow you to call JavaScript functions within React from the Unity Conte ```js RegisterExternalListener (methodName: String, callback: Function): void; ``` -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: +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: ```js import React from 'react' import { RegisterExternalListener } from 'react-unity-webgl' @@ -140,11 +140,11 @@ export class App extends React.Component { } } ``` -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`. +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`. ```js mergeInto (LibraryManager.library, { OpenMenu: function (menuId) { - UnityReactWebGL.OpenMenu (menuId); + ReactUnityWebGL.OpenMenu (menuId); } }); ``` diff --git a/package.json b/package.json index 79117d3e..a78c74ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-unity-webgl", - "version": "6.3.0", + "version": "6.3.1", "description": "A Unity WebGL component for your React application", "main": "library/index.js", "types": "source/types.d.ts",