Unity Issue Tracker - Entity reference is set to random value when the reference is declared in a Dictionary
Closed
ECSB-683
Entity reference is set to random value when the reference is declared in a Dictionary
Package: Entity Component System (ECS)
Won't Fix
1.0.X
After review, we have elected not to address this issue.
Reproduction steps:
1. Open the attached project “EntityRemapDictionary”
2. Open the “Assets/Bug” Scene
3. In the Hierarchy window enable the “BugSubscene” SubScene for editing
4. In the Hierarchy window select the “BugSubscene/CorruptedReference” GameObject
5. Change the Inspector mode to “Runtime”
6. Observe the values of the “Ref” and “Ref2” fields in the “Corrupted Entity” component
Expected result: The “Ref” value is the same as the “Ref2” value
Actual result: The “Ref” value is set to some other random value