Search Issue Tracker
Fixed in 1.5.0, 2.1.0, 3.0.0
Votes
0
Found in [Package]
2020.2.0a13
2020.2.0a15
Issue ID
1254602
Regression
No
[TMP] "Array element out of bounds" exception thrown on creating TMP StyleSheet field after resetting
After resetting TMP StyleSheet, On creating TMP StyleSheet field "Array element out of bounds" exception is thrown refer to the attached video.
Steps to repro:
1. Create a new project
2. Windows > Package Manager > TextMeshPro Version (3.0.0-preview.14) > Install.
3. Assets > Create >TestMeshPro > Style Sheet > Click on(+) Button
4. Project > TMP_StyleSheet > Inspector > Click on(+) Button > reset
5. Project > TMP_StyleSheet > Inspector > Click on(+) Button
Actual result: TMP StyleSheet field not created and "Array element out of bounds" exception is thrown
Expected result: TMP StyleSheet field gets created and no exception is thrown.
Reproducible in:
2020.2.0a15, 2020.2.0a13 with Version(3.0.0) preview.14 - preview.1
Note: Reset functionality for TextMeshPro Assets is introduced in 2020.2.0a13
Environment:
Windows 10 & macOS 10.14
Stack trace:
Retrieving array element that was out of bounds
UnityEditor.SerializedProperty:InsertArrayElementAtIndex (int)
TMPro.EditorUtilities.TMP_StyleEditor:OnInspectorGUI () (at Library/PackageCache/com.unity.textmeshpro@3.0.0-preview.14/Scripts/Editor/TMP_StyleSheetEditor.cs:210)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
Add comment