Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.3.10 - Entities
Issue ID
ECSB-1582
Regression
No
A Script Component added with Baker is not preserved when the SubScene containing it is open
How to reproduce:
1. Open the “EntityComponentBug.zip“ project
2. Open the “SampleScene“
3. Enable (Open) the “SubScene” in the Hierarchy
4. Enter Play Mode
5. Observe the Console
Expected result: “Entity retained chunk component“ Log is displayed
Actual result: “Entity lost chunk component“ LogError is displayed
Reproducible in: 1.3.10 (2022.3.59f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6)
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Note: In a closed SubScene, the Component is preserved
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
- Call stack hyperlinks become unclickable when scrolled down in the Console window
- Package files do not get checked out in Perforce when the project includes a provider callback
- Editor freezes when changing Gradient or AnimationCurve fields with the runtime binding system
- VFX throw errors upon importing it
- "NullReferenceException" error is thrown when swapping between built-in and URP depending on assets loaded out of asset bundles
Resolution Note:
It is unfortunately not intuitive and also not well documented (we'll improve the documentation) but it's currently working as intended.
During live baking (open subscene), the chunk layout keeps on changing and isn't reliable. In that context, chunk components make no sense and caused a lot of trouble so it was decided that they would be explicitly filtered out during live baking.
In order to deal with that situation, a workaround is to have the system in charge of adding those chunk components running both during baking and at runtime. When the scene is baked to disk and background imported (closed subscene), it will directly load with the chunk components and thus that system won't run. But during live baking, the system will ensure proper operation.