Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2020.1.X
Votes
0
Found in
2019.3.0a1
2019.3.0f6
2020.1
2020.2
Issue ID
1261524
Regression
Yes
String array data is lost when one of the strings starts with a colon symbol
How to reproduce:
1. Open the attached project (case-1261524.zip)
2. In the Project window select the 'test' ScriptableObject
3. In the Inspector window expand the Strings field and set Element 1 to ':one'
4. Exit and reopen Unity
5. Select 'test' ScriptableObject again
Expected result: the field 'Strings' remains unchanged
Actual result: all the Elements starting with a colon symbol got removed and an Element before them got set to an empty string (size = '2', Element 0 = '', Element 1 = 'two')
Reproducible with: 2019.3.0a1, 2019.4.3f1, 2020.1.0b15, 2020.2.0a17
Not reproducible with: 2018.4.24f1, 2019.2.0b10, 2019.2.21f1
Notes:
1. The issue doesn't occur when a colon is not the first symbol of a string
2. The issue occurs only with an array of strings (not with char, char[], string)
3. The issue also occurs when a Script with string array field is used as a Component to a GameObject
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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a21
Resolution Note (fix version 2020.1):
Fixed in 2020.1.4f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.9f1