Search Issue Tracker

Fixed

Fixed in 1.4.0-pre.3 - Entities

Votes

0

Found in [Package]

1.4.0-exp.2 - Entities

Issue ID

ECSB-1772

Regression

Yes

TypeManager.GetTypeIndex(Type) and TypeManager.GetTypeIndex<T>() have different results when using the same generic type that is a struct

Package: Entity Component System (ECS)

-

Reproduction steps:
1. Open the "UnityProject" project that is inside the attached "IN-112820.zip"
2. Open the Test Runner (Window > General > Test Runner)
3. Select EditMode
4. Search for "DynamicBufferHashMapTypeTest" and run that test
5. Observe the Test Runner

Expected Result: The test passes
Actual Result: The test fails

Reproducible with: 1.3.14 (2023.2.0a17, 6000.0.58f1), 1.4.0-exp.2 (6000.0.57f1, 6000.2.4f1, 6000.3.0b1)
Not reproducible with: 1.3.8 (2023.2.0a17, 6000.0.58f1), 1.4.0-pre.4 (6000.0.57f1, 6000.2.4f1, 6000.3.0b1)
Could not test with: 1.3.9 (2023.2.0a17, 6000.0.58f1), 1.3.10 (2023.2.0a17, 6000.0.58f1) (Cannot resolve errors with DLLs and References)
Fixed in: 1.4.0-pre.3 (6000.0.57f1, 6000.2.4f1, 6000.3.0b1)

Reproducible on: Windows 11 Pro (24H2)
Not reproducible on: No other environments tested

Workaround: Adding {{DISABLE_TYPEMANAGER_ILPP}} to your Scripting Define Symbols in Edit > Project Settings > Player > Other Settings

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.