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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.