react-unity-webgl
Advanced tools
Comparing version 8.1.3 to 8.1.4
import "../declarations/global"; | ||
import IUnityConfig from "../interfaces/unity-config"; | ||
import UnityComponent from "../components/unity"; | ||
import IUnityContextEventMap from "../interfaces/unity-context-event-map"; | ||
/** | ||
@@ -57,4 +58,5 @@ * The Unity Context. | ||
* @returns {any} The Function | ||
* | ||
*/ | ||
on(eventName: string, eventListener: Function): void; | ||
on<MapKey extends keyof IUnityContextEventMap | (string & {})>(eventName: keyof IUnityContextEventMap | (MapKey & {}), eventListener: (parameter: MapKey extends keyof IUnityContextEventMap ? IUnityContextEventMap[MapKey] : any) => void): void; | ||
/** | ||
@@ -61,0 +63,0 @@ * Invokes an event listener that has been registered using the on function. |
@@ -67,2 +67,3 @@ "use strict"; | ||
* @returns {any} The Function | ||
* | ||
*/ | ||
@@ -69,0 +70,0 @@ UnityContext.prototype.on = function (eventName, eventListener) { |
{ | ||
"name": "react-unity-webgl", | ||
"version": "8.1.3", | ||
"version": "8.1.4", | ||
"description": "React Unity WebGL provides an easy solution for embedding Unity WebGL builds in your React application, with two-way communication between your React and Unity application with advanced API's.", | ||
@@ -5,0 +5,0 @@ "main": "./distribution/exports.js", |
@@ -11,4 +11,5 @@ <div align="center"> | ||
<br/> | ||
[]() | ||
[]() | ||
[]() | ||
[]() | ||
@@ -15,0 +16,0 @@ When building content for the web, you might need to communicate with elements on a webpage. Or you might want to implement functionality using Web APIs which Unity 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 solution for embedding Unity WebGL builds in your React application, with two-way communication between your React and Unity application with advanced API's. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
103312
77
1088
793