Is there a way to load Subscenes for Entities on WebGL?

Hi! I’m working on a WebGL project to leverage the performance of DOTS on WASM but it seems that out of the box the WebGL build won’t load Subscenes entities.

Has anyone been able to do this?

There is none. WebGL is still single-threaded and there’s no Burst compilation either.

Another user had the same issue with Unity 6.

Given that this is an on-off kind of issue, I assume there’s little to no effort spent on Unity’s side in regards to DOTS for WebGL, or at least not for any publicly available editor versions. You may want to check again with Unity 7.

The last working version for web using dots is 2023.2.20

were you able to use dots on webgl? Maybe with the deprecated hybrid entity system, but I can’t find a way to import subscenes on WebGL

There’s an option to use multi-thread and WebGPU on WebGL but its still experimental and not supported by all browsers, but ultimately yes, like you mentioned we would need to wait until the development of the engine and wasm moves towards that direction.

That’s C++ multithreading aka “DIY multithreading” aka “you’re on your own, don’t mess up”. Entities won’t benefit from that, it needs C# multithreading with the Job system.

As i said on 2023.2.20 dots working fine in web.
It just entities graphics package dont work
To render entities make your own custom renderer
I just use Graphics.RenderMeshXXX for runtime
And Gizmos.DrawMesh for editor representation