react-unity-webgl
Advanced tools
Comparing version 6.4.1 to 6.4.2
@@ -25,3 +25,3 @@ 'use strict'; | ||
value: function emit(parameter) { | ||
if (this.canEmit() === true) _Unity.UnityInstance.SendMessage(this.gameObjectName, this.methodName, parameter || '');else console.warn('Wait for Unity to be instantiated before sending an event \'' + this.methodName + '\''); | ||
if (this.canEmit() === true) _Unity.UnityInstance.SendMessage(this.gameObjectName, this.methodName, typeof parameter !== 'undefined' ? parameter : '');else console.warn('Wait for Unity to be instantiated before sending an event \'' + this.methodName + '\''); | ||
} | ||
@@ -28,0 +28,0 @@ }, { |
{ | ||
"name": "react-unity-webgl", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"description": "A Unity WebGL component for your React application", | ||
@@ -37,2 +37,2 @@ "main": "library/index.js", | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# React Unity WebGL · []() []() []() []() []() []() | ||
# React Unity WebGL · []() []() []() []() []() | ||
@@ -3,0 +3,0 @@ When building content for the web, you might need to communicate with other elements on React Application. Or you might want to implement functionality using Web APIs which [Unity](https://unity3d.com) does not currently expose by default. In both cases, you need to directly interface with the browser’s JavaScript engine. React Unity WebGL provides an easy library for Unity 5.6 / 2017 or newer with different methods to do this. |
924694