Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
Votes
6
Found in
2019.3.0a1
2019.3.4f1
2020.1
2020.2
Issue ID
1228940
Regression
Yes
Assets serialization system automatically inserts spaces after an apostrophe as the first character
How to reproduce:
1. Open user-submitted project (SerializationTest.zip)
2. Select the Scenes/Prefab asset
3. Note the Text field on the Test Mono Behaviour Component. Delete its contents.
4. Add a new line into the text field by pressing the Enter key.
5. Add an apostrophe into the new line as the first character of this line
6. Enter some additional text after the apostrophe(e.g. Hello World)
7. Right-click the Component and select 'Reserialize'
Expected result: no additional spaces are added after the apostrophe
Actual result: multiple additional spaces are added after the apostrophe. After removing them and unselecting the Text field new spaces will be added
Reproducible with: 2019.3.0a1, 2019.3.6f1, 2020.1.0b2, 2020.2.0a4
Not reproducible with: 2017.4.38f1, 2018.4.19f1
Notes:
Also reproducible with Scriptable Objects(see Scenes/ScriptableObject). Upon restarting Unity or reimporting, additional spaces are added.
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
- UI Toolkit 'background-size' property is not fully animatable
- Moving the Scrollbar via clicking no longer works after the first-click when page size is too small
- Elements in UI Builder Viewport are displayed incorrectly when Editor UI Scaling is set to 125%
- Prefab referencing a script is not shown in the Search window's Project tab when using "Find References In Project"
- Scroll view sensitivity remains unchanged when modifying the "--unity-metrics-single_line-height" value
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a8
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0b7
Resolution Note (fix version 2019.3):
Fixed in 2019.3.13f1