react-unity-webgl
Advanced tools
Comparing version 6.4.3 to 6.4.4
@@ -17,6 +17,2 @@ 'use strict'; | ||
var _Unity = require('./Unity.styles'); | ||
var _Unity2 = _interopRequireDefault(_Unity); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -69,3 +65,3 @@ | ||
this._unityLoaderService.append(this.props.loader).then(function () { | ||
var unityInstance = UnityLoader.instantiate('unity', _this2.props.src, { | ||
var unityInstance = UnityLoader.instantiate('__ruw', _this2.props.src, { | ||
onProgress: _this2._onProgress.bind(_this2), | ||
@@ -75,2 +71,3 @@ Module: _this2.props.module | ||
module.exports.UnityInstance = unityInstance; | ||
window._ui = unityInstance; | ||
}); | ||
@@ -105,3 +102,3 @@ } | ||
this.state.error | ||
) : _react2.default.createElement('div', { style: _Unity2.default.unity, id: 'unity' }) | ||
) : _react2.default.createElement('div', { style: { width: '100%', height: '100%' }, id: '__ruw' }) | ||
); | ||
@@ -108,0 +105,0 @@ } |
@@ -38,5 +38,7 @@ 'use strict'; | ||
value: function unmount() { | ||
if (this.unityLoaderScript !== null) { | ||
this.documentHead.removeChild(this.unityLoaderScript); | ||
} | ||
/// unmounting is disabled due to bug | ||
/// https://github.com/jeffreylanters/react-unity-webgl/issues/22 | ||
// if (this.unityLoaderScript !== null) { | ||
// this.documentHead.removeChild(this.unityLoaderScript) | ||
// } | ||
} | ||
@@ -43,0 +45,0 @@ }]); |
{ | ||
"name": "react-unity-webgl", | ||
"version": "6.4.3", | ||
"version": "6.4.4", | ||
"description": "A Unity WebGL component for your React application", | ||
@@ -37,2 +37,2 @@ "main": "library/index.js", | ||
} | ||
} | ||
} |
924802
440