Comments (2)
You can try editing
Assets/WebGLTemplates/Better2020index.html
around line 30 add
devicePixelRatio: 1,
as in
const config = {
devicePixelRatio: 1, // <=--------- ADDED!
dataUrl: buildUrl + "/{{{ DATA_FILENAME }}}",
frameworkUrl: buildUrl + "/{{{ FRAMEWORK_FILENAME }}}",
codeUrl: buildUrl + "/{{{ CODE_FILENAME }}}",
#if MEMORY_FILENAME
memoryUrl: buildUrl + "/{{{ MEMORY_FILENAME }}}",
#endif
#if SYMBOLS_FILENAME
symbolsUrl: buildUrl + "/{{{ SYMBOLS_FILENAME }}}",
#endif
streamingAssetsUrl: "StreamingAssets",
companyName: "{{{ COMPANY_NAME }}}",
productName: "{{{ PRODUCT_NAME }}}",
productVersion: "{{{ PRODUCT_VERSION }}}",
};
you might be able to set it to 0.5 for even lower res.
Note: I didn't try it but it's mentioned here:
https://docs.unity3d.com/Manual/webgl-canvas-size.html
from better-unity-webgl-template.
Thank you!
from better-unity-webgl-template.
Related Issues (20)
- How to completely remove this from my project? HOT 1
- screenshot
- Compilation error on Unity 2020.1.8f1 HOT 3
- How to set a maximum size limit? HOT 1
- Stop here for l long time, can't enter game.How to build this project correctly? HOT 1
- Not working with 2019.4.14 HOT 1
- How to import package to 2019? HOT 5
- Web cam permission HOT 1
- Background image
- Work great on PC (fullHD) but it look pixelated in the mobile browser (fullHD+) HOT 3
- 2021.2 Main Scene Doesnt Load HOT 4
- process bar cannot run under chrome when use gzip
- Cannot load into Main Scene Under 2021.3.3f1 HOT 1
- Hey! Template works on LocalHost when build and run, but does not work when uploading game on server HOT 1
- Flicker when Resize?
- How to setup portrait screen size
- Timeout = 2000? HOT 2
- Full screen on click HOT 2
- Not working Unity 2020, UnityLoader fails to load HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-unity-webgl-template.