Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3.0b7
Issue ID
1094311
Regression
Yes
[Scripting] Crashes on increasing public string array size in the inspector
Editor crashed while increasing size of string array in the inspector.
Steps to Reproduce:
1. Create a new project.
2. Create a new script.
3. Add following variables to the script:
public string[] a;
public int b = 2;
public int[] c;
4. Attach the script to a GameObject.
5. In the inspector, set string array 'a' size to 2(it can be any value).
6. Add values to the elements of string array 'a'.
7. Now resize string array size as 3.
Actual Result: Editor crashes.
Expected Result : String array should get resized and editor should not crash
Reproducible On: 2018.3.0b7, 2018.3.0b8, 2019.1.0a6
Not Reproducible On: 2018.3.0b6, 2019.1.0a5
Notes:
- Appears on both Mac and Windows
- Appears only when there is a variable defined between two arrays (one should be string array)
- Appears only for string arrays.
- *Increasing string array size also removes data from the corresponding variable (see the attached video-"SideEffects.mp4" for details)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
Add comment