react-unity-webgl
Advanced tools
Comparing version 7.1.5 to 7.1.6
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
@@ -10,0 +7,0 @@ extendStatics(d, b); |
@@ -8,3 +8,2 @@ declare class UnityInstance { | ||
* @param parameter an optional parameter. | ||
* @public | ||
*/ | ||
@@ -15,3 +14,2 @@ SendMessage(gameObjectName: string, methodName: string, parameter?: any): void; | ||
* @param {boolean} fullScreen | ||
* @public | ||
*/ | ||
@@ -27,3 +25,15 @@ SetFullscreen(fullScreen: number): void; | ||
Quit(onQuitCallback: () => void): void; | ||
/** | ||
* Loads JS code blob into the memory. | ||
* @param url the url to the js blob code | ||
* @param onLoad on load callback | ||
*/ | ||
LoadJSCodeBlob(url: string, onLoad: () => void): void; | ||
/** | ||
* Loads JS code into the memory. | ||
* @param url the url to the js code | ||
* @param onLoad on load callback | ||
*/ | ||
LoadJSCode(url: string, onLoad: () => void): void; | ||
} | ||
//# sourceMappingURL=UnityInstance.d.ts.map |
@@ -8,13 +8,31 @@ declare class UnityLoader { | ||
* @param options optional options to pass to the player. | ||
* @public | ||
* @static | ||
*/ | ||
static instantiate(elementId: string, source: string, options?: Object): UnityInstance; | ||
/** | ||
* Unity error handler. | ||
* Unity Error class. | ||
*/ | ||
static Error: { | ||
/** | ||
* The error event handler. | ||
*/ | ||
handler: (error: string) => void; | ||
}; | ||
/** | ||
* Unity system info. | ||
*/ | ||
static SystemInfo: { | ||
/** | ||
* Does the current system support webGL? | ||
*/ | ||
hasWebGL: boolean; | ||
/** | ||
* Is the current system a mobile device? | ||
*/ | ||
mobile: boolean; | ||
/** | ||
* The current systems browser. | ||
*/ | ||
browser: string; | ||
}; | ||
} | ||
//# sourceMappingURL=UnityLoader.d.ts.map |
{ | ||
"name": "react-unity-webgl", | ||
"version": "7.1.5", | ||
"version": "7.1.6", | ||
"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", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68589
57
767