Unity Issue Tracker - Stable type hash for the Component breaks when managed component data containing a Compute Buffer and Graphics Buffer is used
Closed
ECSB-144
Stable type hash for the Component breaks when managed component data containing a Compute Buffer and Graphics Buffer is used
Package: Entity Component System (ECS)
As Designed
1.0.X
Issue resolved as noted by customer. Issue was sorted out on Discord and the type mismatch is due to ifdefs in the type making it inappropriate for baking
How to reproduce:
1. Open the attached user project “DotsComputerBuffer.zip“
2. Open Scene “SampleScene“ (Assets/Scenes)
3. Enable the “SubScene“ SubScene in the Hierarchy
4. Build And Run (File > Build And Run)
Expected result: The Build has no errors in Log
Actual result: Error in Log: "ArgumentException: Cannot find TypeIndex for type hash 9622449259180854178. Check in the debug file ExportedTypes.log of your project Logs folder (<projectName>/Logs) the corresponding Component type name for the type hash 9622449259180854178."
Reproducible with: 1.0.0-pre.15 (2022.2.2f1, 2023.1.0a24)
Can’t test with: 1.0.0-pre.12, 1.0.0-pre.15 (2020.3.43f1, 2021.3.16f1), 1.0.0-pre.12 (2022.2.2f1, 2023.1.0a24) (Errors in the Console)
Reproduced on: macOS 13.0.1 (Intel)
Notes:
The type hash is different from the error, this is because the type hash is not stable with a compute buffer element in the component
Issue is not reproducible in Play Mode
Prioritise and Follow this issue
Have a workaround or additional info about this issue?