Skip to content

Instantly share code, notes, and snippets.

@contrasting
Created April 22, 2020 17:18
Show Gist options
  • Select an option

  • Save contrasting/25a777e746414ea6d0c5700a3bdcb965 to your computer and use it in GitHub Desktop.

Select an option

Save contrasting/25a777e746414ea6d0c5700a3bdcb965 to your computer and use it in GitHub Desktop.
I don't know html
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<style>
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
background: #444;
}
#unityContainer {
width: 100vw;
height: 100vh;
}
canvas {
width: 100%;
height: 100%;
display: block;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment