Search Issue Tracker
Fixed
Fixed in 1.3.X - Entities
Votes
0
Found in [Package]
1.2.0 - Entities
1.3.X - Entities
Issue ID
ECSB-1060
Regression
Yes
"SystemAPI.GetSingletonBuffer" method's "isReadOnly" argument is ignored when generating ISystem code
How to reproduce:
1. Open the “BugReports“ project
2. In the Project window navigate and open the “Assets/SignletonBufferSystem.cs” script
3. Wait until IDE indexes all the files
4. Select the class name string “SingletonBufferSystem”
5. Right-click on it then from the context menu select “Go to declaration” or press F12
6. Observe lines 12 and 14
Expected result: The “GetSingletonBuffer” method arguments are not empty
Actual result: The “GetSingletonBuffer” method arguments are empty
Reproduced with: 1.2.0-exp.3 (6000.0.0b15), 1.2.0 (2022.3.25f1, 6000.0.0b15)
Not reproduced with: 1.0.16 (2022.3.25f1), 1.1.0-pre.3 (6000.0.0b15)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
IDE reproduced on: JetBrains Rider
IDE could not test on: Visual Studio (Could not find a way to inspect the generated code)
Workaround: Use “SystemAPI.TryGetSingletonBuffer<SingletonBuffer>(out var buffer, true)” instead of “SystemAPI.GetSingletonBuffer<SingletonBuffer>(true)”
Note: More explanation on the expected and actual results 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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note (fix version 1.3.X - Entities):
SystemAPI.GetSingletonBuffer now correctly passed the IsReadOnly param