react-unity-webgl
Advanced tools
Comparing version 5.6.0-update.2 to 5.6.0-update.3
@@ -102,3 +102,3 @@ "use strict"; | ||
"div", | ||
{ style: this.style }, | ||
{ className: "unity" }, | ||
_react2.default.createElement("div", { className: "unity-container", id: "unity-container" }), | ||
@@ -105,0 +105,0 @@ this.state.loaded == false && _react2.default.createElement( |
{ | ||
"name": "react-unity-webgl", | ||
"version": "5.6.0-update.2", | ||
"version": "5.6.0-update.3", | ||
"description": "A Unity WebGL component for your React application", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-unity-webgl.js", |
@@ -53,16 +53,13 @@ # react-unity-webgl | ||
```scss | ||
/* Example styling */ | ||
.unity-container { | ||
canvas { | ||
/* ... */ | ||
.unity { | ||
.unity-container { | ||
canvas { | ||
} | ||
} | ||
} | ||
.unity-loader { | ||
/* ... */ | ||
.bar { | ||
/* ... */ | ||
.fill { | ||
/* the width will be set | ||
* by the component | ||
... */ | ||
.unity-loader { | ||
.bar { | ||
.fill { | ||
/* the width will be set by the component */ | ||
} | ||
} | ||
@@ -69,0 +66,0 @@ } |
@@ -63,3 +63,3 @@ import React, { Component } from 'react'; | ||
return ( | ||
<div style={this.style}> | ||
<div className="unity"> | ||
<div className="unity-container" id="unity-container"></div> | ||
@@ -66,0 +66,0 @@ {this.state.loaded == false && |
11352
67