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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.