Search Issue Tracker
Fixed
Fixed in 1.3.X - Entities, 7000.0.0a1
Votes
3
Found in [Package]
1.2.X
1.3.X - Entities
7000.0.0a1
Issue ID
ECSB-939
Regression
No
"ArgumentException: Cannot find TypeIndex for type hash" is thrown in the Player when using Entities Package in embedded mode
How to reproduce:
1. Open the “DOTSBug“ project
2. Open the “SampleScene”
3. Build And Run
4. Open and observe the Player.log
Expected result: No errors are thrown
Actual result: The “ArgumentException: Cannot find TypeIndex for type hash” error is thrown
Reproduced with: 1.0.16 (2022.3.20f1), 1.2.0-pre.6 (2023.3.0b9)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
1. Not reproducible in the Editor
2. Not reproducible without a SubScene that contains a GameObject with a Rigidbody Component
3. The “Entities” and “Entities Graphics” Packages are moved from the “Library/PackageCache” folder to the “Packages” folder and used in embedded mode → more information about embedded mode can be found here: https://docs.unity3d.com/Manual/upm-embed.html
4. Reproducible in a new project
5. Full error is provided in the internal comments
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
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Resolution Note:
The Docs CodeSamples contained a Baker that ran on a Unity internal type (Rigibody). Because of this, when embedded, the component types added to the Entity in the Baker would be added to the EntityScene. But this assembly is stripped on build, so those types are 'missing' when the TypeManager tries to find them. I edited the CodeSamples to fix this.