OneJS Limitations
OneJS uses Unity's UI Toolkit as its DOM layer. And UI Toolkit only contains a subset of Dom and CSS features. The following are currently not supported.
- Canvas (but there's the Vector API)
- SVG (on UI Toolkit's roadmap)
- Complex CSS selectors
- CSS animation and keyframes (on UI Toolkit's roadmap)
Note on Past Limitations
For OneJS V1, node modules and custom Editor UI were not officially supported. For V2, they are. With the NodeJS backend, you can install and use packages as usual with npm install
. Custom Editor UI support is currently experimental in V2. You can take a look at esbuild.mjs
for more details.
WebGL
We haven't implement this yet, but WebGL will be supported for V2 at some point. It will use Puerts' WebGL workflow and piggy-back on browser's own JS engine.