Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
Issue ID
1191780
Regression
No
ScriptReference/SystemInfo-minConstantBufferOffsetAlignment.html :
The SystemInfo.minConstantBufferOffsetAlignment property is declared to have a bool value while in fact it needs to have an int value. The issue is clearly visible in the documentation below, where the behavior is documented correctly, but the API is not.
--------------
The documentation asserts that the return type would be an integer but the API return type is a bool.
URL: https://docs.unity3d.com/ScriptReference/SystemInfo-minConstantBufferOffsetAlignment.html
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
- Inspector loses focus or Material doesn't update when using GetModifiedMaterial with a Mask component
- Crash on GfxDeviceClient::AllocateBufferInternal when entering Play mode using Graphics.RenderPrimitives and Graphics.DrawProcedural in the scene
- Import TextMesh Pro window opens when the Text Mesh Pro Essentials and Examples are already imported when creating a new TextMesh Pro GameObject in the Hierarchy with TextMesh Pro settings reset
- Video is not rendered when the VideoPlayer GameObject is disabled and re-enabled after playback starts while using Material Override render mode
- Missing documentation page - "Sorry...that page seems to be missing" is shown on the browser when clicking the help icon on a Color Preset Library Scriptable Object
Resolution Note (fix version 2020.2):
The SystemInfo.minConstantBufferOffsetAlignment API was tagged as Obsolete and retained with the wrong return value to keep it from breakage in older projects.
It was replaced with SystemInfo.constantBufferOffsetAlignment which will return the correct int value for the constant buffer offset alignment.