Hi,
We are adding Universal Render Pipeline to our project, and the URP package contains some texture assets in it.
We don’t use FilmGrain post processing, (but possibly start to use one day), so we don’t need the film grain textures in Textures/FilmGrain/.
They are 256kb * 10 textures so it takes 2.5 mb in the build. Unity does not strip them from any of our builds including our Quest build.
Is there a way to remove the assets from the package or exclude when build?
The textures are referenced by the PostProcessData asset, in turn referenced by the UniversalRendererData asset in your project. It looks like this is all-or-nothing, there’s no mechanism to include only the needed textures – though there’s probably no way for Unity to safely detect that textures will never be used in a project.
You can unset the asset reference in your renderer under Post-processing > Data, which should exclude all the textures from your build (noise, grain and SMAA). If you only want to exclude some textures, you could copy the PostProcessData asset into your Assets, set it in the renderer and then remove the textures you don’t need. You’ll need to switch the inspector into debug mode, since the asset’s editor hides the references by default.