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
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 1.3.X - Entities):
SystemAPI.GetSingletonBuffer now correctly passed the IsReadOnly param