Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.3.X - Entities
7000.0.0a1
Issue ID
ECSB-1413
Regression
No
Graphics assets are not stripped from the server build when a scene is saved as a reference
Reproduction steps:
1. Open the attached project "BuildNotStripped"
2. Open “Assets/Scene/Game.unity“ Scene
3. Open Build Settings (File > Build Settings)
4. Set Platform to Dedicated Server
5. Build the project
6. Observe build size (right-click on the build folder > properties)
7. Select the “Environment“ Subscene reference in the Hierarchy window
8. Set Scene Asset to “Environment“ in “Sub Scene (Script)“ in the Inspector window
9. Repeat steps 4-6
Expected result: Both builds are the same size, graphic assets are stripped from build.
Actual result: Graphic assets are not stripped when the scene is saved as a reference
Reproducible with: 1.0.17, 1.1.0-exp.1 (2022.3.12f1)
Couldn’t test with: 1.0.8 (2022.3.12f1) - “error CS1061: 'EntitySceneReference' does not contain a definition for 'IsReferenceValid' and no accessible extension method 'IsReferenceValid' accepting a first argument of type 'EntitySceneReference' could be found“
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
Resolution Note:
In order to strip out graphics assets from server builds, you can use the Excluded baking system assemblies option in the Project settings window for server builds (Multiplayer/build section). Graphic assets are present in the build because they are referenced by bakers being in the Unity.Entities.Graphics assembly. If you exclude the Unity.Entities.Graphics assembly from baking, the build size is getting reduced by more than the half (from 500MB to 170 MB) for server builds.