Search Issue Tracker
By Design
Votes
0
Found in [Package]
0.8.0-preview.8
Issue ID
1226638
Regression
No
Entity System stops to work when the class name exceeds 37 characters
How to reproduce:
1. Open the attached project's "case_1226638-Project.zip" Scene labeled "Scene"
2. Enter the Play Mode
3. Observe the Game View
4. Exit the Play Mode
5. Add one letter to the "AReallyLongNamedClassOrNamespaceSystem" Script's class (make sure that the Script's and Class name match)
6. Enter the Play Mode
7. Observe the Game View (If the Editor crashes, reopen the project)
Expected result: Entity System is working
Actual result: Entity System stops working when the class name is too long
Reproducible with: 2019.3.6f1, 2020.1.0b3, 2020.2.0a5 (0.6.0-preview.24, 0.8.0-preview.8)
Couldn't test with Unity: 2017.4.38f1 (Package Manager does not exist), 2018.4.20f1 (0.0.12-preview.2, 0.0.12-preview24)
Couldn't test with Packages: 0.0.12-preview.2, 0.5.1-preview.11 (SystemBase class does not exist)
Note: Issue doesn't reproduce with a name that is up to 37 characters
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Closing as "by design". We could arguably change our string comparison function used to sort unconstrained system, but really the important thing is that the sort is deterministic, not that it's predictable. Projects that require a specific system ordering should not rely on the implementation of the tiebreaker function; they should use UpdateBefore/UpdateAfter to impose explicit ordering constraints.