https://github.com/cesardeazevedo/unity-web-player
<unity-web-player> Web Component for Unity3D Web Player. </unity-web-player>
https://github.com/cesardeazevedo/unity-web-player
Last synced: about 2 months ago
JSON representation
<unity-web-player> Web Component for Unity3D Web Player. </unity-web-player>
- Host: GitHub
- URL: https://github.com/cesardeazevedo/unity-web-player
- Owner: cesardeazevedo
- License: mit
- Created: 2015-01-16T03:16:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T03:39:27.000Z (over 10 years ago)
- Last Synced: 2025-03-24T04:25:31.443Z (2 months ago)
- Homepage: http://cesardeazevedo.github.io/unity-web-player/
- Size: 17.1 MB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# \
<unity-web-player> Web Component for Unity3D Web Player. </unity-web-player>#####Simple and flexible web component to unity web player games.
[Demo Page](http://cesardeazevedo.github.io/unity-web-player/)
##Get Started
Install using [bower](http://bower.io/)
```sh
$ bower install unity-web-player
````##Usage
1. Import polyfill
```html
```2. Import this custom element
````html
```3. Start using now
```html
```###Code Sample
```html
My Game
```
##Options
|Attribute| Type| Default| Description|
|---------|-----|--------|------------|
|source | String | | *Required* Path to `.unity3d` file|
|name | String | | The name of your game, will show on middle of the screen if `autoplay` is set to false|
|width | Integer | 980 |Sets the width of the unity web player |
|height | Integer | 465 | Sets the height of the unity web player|
|autoplay | Boolean |true| If false, will show a play button on middle of screen, otherwise will play game immediately.|
|background| String|| A path to a background image, will show if `autoplay` attribute is set to false |
|text| String|| An aditional text to show when `autoplay` attribute is set to false|
|color| String| black |A color to `name` and `text` attribute|
|playColor|`aqua`, `black`, `darkcyan`, `green`, `pink`, `red`, `white`| `black`| The play button color.|
##Contributing1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D##License
[MIT](./LICENSE) Cesar Augusto