Unity 6 - WASM Stripping Tool?

As shown in the roadmap for Unity 6 at Unite: https://youtu.be/pq3QokizOTQ?t=692 there’s a planned WASM stripping tool. That said, it was unclear if it was already available for Unity 6 or if its planned for Unity 6.1+.

Also hoping if it was going to be available for the Web platform outside of Facebook instant games (I don’t see why it shouldn’t be accessible for all web exports…)

Anyone knows?

2 Likes

Hey, thanks for asking about this - we’re exciting that you’re interested in using it.

I can confirm that a WASM stripping tool is under development, and we plan to release it as a Unity Package for Unity 6 in the near future…stay tuned!

2 Likes

It’s a great initiative. I’ve been asked to aggressively target lower build sizes for WebGL. The lowest we ever got to was 4MB, because at the time the splash screen took up 3MB of build space even if you had a Pro License and didn’t include it :upside_down_face:

Thanks for your reply! Like I posted in the Unity 6 announcement post; an ol’coleague of Unity (Aras!) has posted a very interesting writeup of the Web Platform build sizes. As you know, this is a major pain point for the platform - as it directly correlates to the time-to-play in games.

Here’s the post: Unity 6 “empty” web build file sizes · GitHub

There’s quite a bit of low-hanging fruits that can be done easily to lower it.

I just wanted to point it out and ensure it gets the right attention. Thanks!

Thanks for calling this out! Some of the engineers on our team are actually active on that thread and looking into the suggestions. It’s also worth noting that a good amount of these recommendations have been captured by the updates to our Unity 6 Web Optimizations documents that can be found here:

1 Like

Thanks! Good baseline resources.

I would suggest adding disabling Post-Processing as a suggestion formally as it is by far the biggest contributor to the build size of a URP project.

Additionally, there’s a few caveats that should be noted in the “Disable a built-in package” for big packages like Terrain that can’t be disabled due to dependencies. Or just a general comment that disabling packages with dependencies will not have any effect.

And finally, if Unity could report / test on minimal build-sizes that would be a great addon.

Ex. Minimal build size for Web 3D URP (with all packages stripped except bare minimum, such as UI and input = 3.2MB) for Unity 6000.1.

Even better would have it as a “template” for new projects. It gives us a target size reference & foundation to build-upon. And for you internally to track if new dependencies are added by mistake by other feature teams.

Food for thought.

1 Like

With 6000.1.0a2 out, containing

Editor: Added support for Facebook Instant Games.

I wanted to try it but other than applying the “facebook instant” web template, I can’t find any other setting for it.

And when I build with said template, there’s no WASM stripping… the build is exactly the same as non-Instant game builds.

I am missing something? :thinking:

Now that 6000.1.0a4 is out, I was super excited to see

… only to find out that the package is not available yet. Bummer.

Stay tunned for my next adventures on trying to get my hand on the Submodule Stripping Tool :sweat_smile:

6000.1.0a9, still unavailable.

is this out yet? according to this page it is but I don’t see any package available yet.

EDIT: Nvm I found the package on google com.unity.web.stripping-tool

6 Likes